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

@@ -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();