mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-08 06:50:56 +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
|
- 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
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user