Demo: fixed restoring last used theme on startup (regression in 0.39 since commit a8f4c8e843)

This commit is contained in:
Karl Tauber
2020-08-26 12:35:26 +02:00
parent 2f876d553f
commit 3e941e3e42
2 changed files with 5 additions and 4 deletions

View File

@@ -17,6 +17,7 @@ FlatLaf Change Log
- TextArea: Update background color property if enabled or editable state - TextArea: Update background color property if enabled or editable state
changes in the same way as Swing does it for all other text components. (issue changes in the same way as Swing does it for all other text components. (issue
#147) #147)
- Demo: Fixed restoring last used theme on startup. (regression in 0.39)
#### Other Changes #### Other Changes

View File

@@ -205,11 +205,11 @@ public class IJThemesPanel
break; break;
} }
} }
}
// select first theme if none selected // select first theme if none selected
if( themesList.getSelectedIndex() < 0 ) if( themesList.getSelectedIndex() < 0 )
themesList.setSelectedIndex( 0 ); themesList.setSelectedIndex( 0 );
}
// scroll selection into visible area // scroll selection into visible area
int sel = themesList.getSelectedIndex(); int sel = themesList.getSelectedIndex();