Reset settings editor on settings import and reset

This commit is contained in:
Tamius Han 2025-03-29 17:17:20 +01:00
parent f77506c454
commit 7aacbec108

View File

@ -213,6 +213,7 @@ export default {
this.settings.active = newSettings; this.settings.active = newSettings;
this.settings.saveWithoutReload(); this.settings.saveWithoutReload();
this.importSettingDialogConfig = {visible: false}; this.importSettingDialogConfig = {visible: false};
this.resetSettingsEditor();
}, },
reject: () => { reject: () => {
this.importSettingDialogConfig = {visible: false}; this.importSettingDialogConfig = {visible: false};
@ -230,6 +231,7 @@ export default {
resetSettings() { resetSettings() {
this.settings.active = JSON.parse(JSON.stringify(this.settings.default)); this.settings.active = JSON.parse(JSON.stringify(this.settings.default));
this.settings.saveWithoutReload(); this.settings.saveWithoutReload();
this.resetSettingsEditor();
}, },
saveSettingsChanges() { saveSettingsChanges() {