From d5c0155a82cd67445d617aeb2e314c3839bc2c71 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 1 Feb 2020 11:48:24 -0500 Subject: Update main dictionary value when changing modifying profile --- ext/bg/js/settings/dictionaries.js | 6 ++++-- 1 file 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() { -- cgit v1.2.3