Fixed #113: when switch to launcher settings page, the theme changes to orange

This commit is contained in:
huangyuhui 2017-02-18 12:50:37 +08:00
parent 65e5677788
commit 00143de42b

View File

@ -36,10 +36,7 @@ import org.jackhuang.hmcl.util.ui.SwingUtils;
* @author huangyuhui
*/
public class LauncherSettingsPanel extends RepaintPage {
/**
* Creates new form LancherSettingsPanel
*/
public LauncherSettingsPanel() {
setRepainter(this);
}
@ -66,7 +63,8 @@ public class LauncherSettingsPanel extends RepaintPage {
DefaultComboBoxModel<Theme> g = new DefaultComboBoxModel<>();
for (Theme t : Theme.THEMES.values())
cboTheme.addItem(t);
g.addElement(t);
cboTheme.setModel(g);
txtBackgroundPath.setText(Settings.getInstance().getBgpath());
txtCommonPath.setText(Settings.getInstance().getCommonpath());