* Fixed a bug that some options in preferences were handled with the wrong state as long as never set manually.

This commit is contained in:
LevelX2 2015-09-29 17:26:29 +02:00
parent f5b411c516
commit e2453abbb5
2 changed files with 6 additions and 5 deletions

View file

@ -2565,6 +2565,7 @@ public class PreferencesDialog extends javax.swing.JDialog {
private static void load(Preferences prefs, JCheckBox checkBox, String propName, String yesValue, String defaultValue) {
String prop = prefs.get(propName, defaultValue);
checkBox.setSelected(prop.equals(yesValue));
updateCache(propName, prop);
}
private static void load(Preferences prefs, JTextField field, String propName, String defaultValue) {