diff options
Diffstat (limited to 'ext/js/pages/settings/backup-controller.js')
-rw-r--r-- | ext/js/pages/settings/backup-controller.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ext/js/pages/settings/backup-controller.js b/ext/js/pages/settings/backup-controller.js index 933f0e2a..9b80f0b4 100644 --- a/ext/js/pages/settings/backup-controller.js +++ b/ext/js/pages/settings/backup-controller.js @@ -367,6 +367,9 @@ class BackupController { } } + // Update dictionaries + await DictionaryController.ensureDictionarySettings(this._settingsController, void 0, optionsFull, true, false); + // Assign options await this._settingsImportSetOptionsFull(optionsFull); } @@ -401,12 +404,7 @@ class BackupController { const optionsFull = this._optionsUtil.getDefault(); // Update dictionaries - const dictionaries = await this._settingsController.getDictionaryInfo(); - for (const {options: {dictionaries: optionsDictionaries}} of optionsFull.profiles) { - for (const {title} of dictionaries) { - optionsDictionaries[title] = DictionaryController.createDefaultDictionarySettings(false); - } - } + await DictionaryController.ensureDictionarySettings(this._settingsController, void 0, optionsFull, true, false); // Assign options try { |