diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-03-31 18:32:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-31 18:32:17 -0400 |
commit | bdec71976a9478beaf74d8299aa1ca6a95c2ce0c (patch) | |
tree | 49bfac05ddf45d73c1308fd4d5c5a5d802643ce2 /ext/js/pages/settings/backup-controller.js | |
parent | bcbd413e571d772a4438f57138169ad1a6a3b5a8 (diff) |
Fix dictionary settings being missing after importing settings (#1576)
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 { |