Remove argument from onDictionaryOptionsChanged
This commit is contained in:
parent
566012f228
commit
748cd27ad0
@ -361,12 +361,16 @@ async function dictSettingsInitialize() {
|
||||
|
||||
const optionsContext = getOptionsContext();
|
||||
const options = await getOptionsMutable(optionsContext);
|
||||
onDictionaryOptionsChanged(options);
|
||||
onDictionaryOptionsChanged();
|
||||
onDatabaseUpdated(options);
|
||||
}
|
||||
|
||||
async function onDictionaryOptionsChanged(options) {
|
||||
async function onDictionaryOptionsChanged() {
|
||||
if (dictionaryUI === null) { return; }
|
||||
|
||||
const optionsContext = getOptionsContext();
|
||||
const options = await getOptionsMutable(optionsContext);
|
||||
|
||||
dictionaryUI.setOptionsDictionaries(options.dictionaries);
|
||||
|
||||
const optionsFull = await apiOptionsGetFull();
|
||||
|
@ -167,7 +167,7 @@ async function formWrite(options) {
|
||||
|
||||
await ankiTemplatesUpdateValue();
|
||||
await onAnkiOptionsChanged(options);
|
||||
await onDictionaryOptionsChanged(options);
|
||||
await onDictionaryOptionsChanged();
|
||||
|
||||
formUpdateVisibility(options);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user