forked from External/mage
* 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:
parent
f5b411c516
commit
e2453abbb5
2 changed files with 6 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue