Merge pull request #2322 from JoePfeiffer/fix-2321
Store updated units preferences if needed
This commit is contained in:
commit
4fb4a8a590
@ -141,8 +141,10 @@ public class PreferencesDialog extends JDialog {
|
|||||||
// We don't want to lose the preference for the confirmation dialog
|
// We don't want to lose the preference for the confirmation dialog
|
||||||
boolean isShowDiscardConfirmation = preferences.isShowDiscardPreferencesConfirmation();
|
boolean isShowDiscardConfirmation = preferences.isShowDiscardPreferencesConfirmation();
|
||||||
|
|
||||||
// Reload initial preferences
|
// Either store changed preferences (if OK) or reload initial preferences (if Cancel)
|
||||||
if (!storePreferences) {
|
if (storePreferences) {
|
||||||
|
preferences.storeDefaultUnits();
|
||||||
|
} else {
|
||||||
loadInitPreferences();
|
loadInitPreferences();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user