diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-01 11:48:24 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-01 21:00:43 -0500 |
commit | d5c0155a82cd67445d617aeb2e314c3839bc2c71 (patch) | |
tree | 2d8a64b99f50e84f30774598728b2be0835f6a1c /ext/bg/js/settings | |
parent | 8eaa0334acf4f36a05fa881571019532e325f4a6 (diff) |
Update main dictionary value when changing modifying profile
Diffstat (limited to 'ext/bg/js/settings')
-rw-r--r-- | ext/bg/js/settings/dictionaries.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/bg/js/settings/dictionaries.js b/ext/bg/js/settings/dictionaries.js index 2355f807..0d827f49 100644 --- a/ext/bg/js/settings/dictionaries.js +++ b/ext/bg/js/settings/dictionaries.js @@ -357,8 +357,8 @@ async function dictSettingsInitialize() { document.querySelector('#dict-main').addEventListener('change', (e) => onDictionaryMainChanged(e), false); document.querySelector('#database-enable-prefix-wildcard-searches').addEventListener('change', (e) => onDatabaseEnablePrefixWildcardSearchesChanged(e), false); - onDictionaryOptionsChanged(); - onDatabaseUpdated(); + await onDictionaryOptionsChanged(); + await onDatabaseUpdated(); } async function onDictionaryOptionsChanged() { @@ -371,6 +371,8 @@ async function onDictionaryOptionsChanged() { const optionsFull = await apiOptionsGetFull(); document.querySelector('#database-enable-prefix-wildcard-searches').checked = optionsFull.global.database.prefixWildcardsSupported; + + await updateMainDictionarySelectValue(); } async function onDatabaseUpdated() { |