Skip to content

Commit

Permalink
Revert "Revert "Set the selection to 1st CTabItem when it is created." (
Browse files Browse the repository at this point in the history
#1087)"

This reverts commit 2a51e8c.
  • Loading branch information
deepika-u authored and fedejeanne committed May 10, 2024
1 parent 3e830bf commit 49c04a7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,7 @@ void createItem (CTabItem item, int index) {
priority = newPriority;

if (items.length == 1) {
setSelection(0);
updateFolder(UPDATE_TAB_HEIGHT | REDRAW);
} else {
updateFolder(REDRAW_TABS);
Expand Down

0 comments on commit 49c04a7

Please sign in to comment.