Skip to content

Commit

Permalink
Set the selection to 1st CTabItem when it is created.
Browse files Browse the repository at this point in the history
  • Loading branch information
deepika-u committed Feb 20, 2024
1 parent a282239 commit bfc4175
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,8 @@ void createItem (CTabItem item, int index) {
priority = newPriority;

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

0 comments on commit bfc4175

Please sign in to comment.