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
|
||||
boolean isShowDiscardConfirmation = preferences.isShowDiscardPreferencesConfirmation();
|
||||
|
||||
// Reload initial preferences
|
||||
if (!storePreferences) {
|
||||
// Either store changed preferences (if OK) or reload initial preferences (if Cancel)
|
||||
if (storePreferences) {
|
||||
preferences.storeDefaultUnits();
|
||||
} else {
|
||||
loadInitPreferences();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user