IntelliJ Themes Demo: theme save and github buttons were not enabled when starting demo with active IntelliJ theme

This commit is contained in:
Karl Tauber
2020-05-03 18:23:16 +02:00
parent 4bd3b889dc
commit 8e6e971b51

View File

@@ -198,14 +198,14 @@ public class IJThemesPanel
}
private void themesListValueChanged( ListSelectionEvent e ) {
if( e.getValueIsAdjusting() || isAdjustingThemesList )
return;
IJThemeInfo themeInfo = themesList.getSelectedValue();
boolean bundledTheme = (themeInfo != null && themeInfo.resourceName != null);
saveButton.setEnabled( bundledTheme );
sourceCodeButton.setEnabled( bundledTheme );
if( e.getValueIsAdjusting() || isAdjustingThemesList )
return;
EventQueue.invokeLater( () -> {
setTheme( themeInfo );
} );