Skip to content

Commit

Permalink
Update the selectedIndex when the 1st CTabItem is created.
Browse files Browse the repository at this point in the history
Fixes #46
  • Loading branch information
deepika-u committed Feb 8, 2024
1 parent 15d3065 commit f74d7a8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ void createItem (CTabItem item, int index) {

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

0 comments on commit f74d7a8

Please sign in to comment.