mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-13 15:27:16 -06:00
IntelliJ Themes Demo: theme save and github buttons were not enabled when starting demo with active IntelliJ theme
This commit is contained in:
@@ -198,14 +198,14 @@ public class IJThemesPanel
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void themesListValueChanged( ListSelectionEvent e ) {
|
private void themesListValueChanged( ListSelectionEvent e ) {
|
||||||
if( e.getValueIsAdjusting() || isAdjustingThemesList )
|
|
||||||
return;
|
|
||||||
|
|
||||||
IJThemeInfo themeInfo = themesList.getSelectedValue();
|
IJThemeInfo themeInfo = themesList.getSelectedValue();
|
||||||
boolean bundledTheme = (themeInfo != null && themeInfo.resourceName != null);
|
boolean bundledTheme = (themeInfo != null && themeInfo.resourceName != null);
|
||||||
saveButton.setEnabled( bundledTheme );
|
saveButton.setEnabled( bundledTheme );
|
||||||
sourceCodeButton.setEnabled( bundledTheme );
|
sourceCodeButton.setEnabled( bundledTheme );
|
||||||
|
|
||||||
|
if( e.getValueIsAdjusting() || isAdjustingThemesList )
|
||||||
|
return;
|
||||||
|
|
||||||
EventQueue.invokeLater( () -> {
|
EventQueue.invokeLater( () -> {
|
||||||
setTheme( themeInfo );
|
setTheme( themeInfo );
|
||||||
} );
|
} );
|
||||||
|
|||||||
Reference in New Issue
Block a user