mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-07 22:40:53 +03:00
Demo: fixed restoring last used theme on startup (regression in 0.39 since commit a8f4c8e843)
This commit is contained in:
@@ -17,6 +17,7 @@ FlatLaf Change Log
|
||||
- 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
|
||||
#147)
|
||||
- Demo: Fixed restoring last used theme on startup. (regression in 0.39)
|
||||
|
||||
#### Other Changes
|
||||
|
||||
|
||||
@@ -205,11 +205,11 @@ public class IJThemesPanel
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// select first theme if none selected
|
||||
if( themesList.getSelectedIndex() < 0 )
|
||||
themesList.setSelectedIndex( 0 );
|
||||
// select first theme if none selected
|
||||
if( themesList.getSelectedIndex() < 0 )
|
||||
themesList.setSelectedIndex( 0 );
|
||||
}
|
||||
|
||||
// scroll selection into visible area
|
||||
int sel = themesList.getSelectedIndex();
|
||||
|
||||
Reference in New Issue
Block a user