Remove argument from onDictionaryOptionsChanged

This commit is contained in:
toasted-nutbread 2020-02-01 11:20:50 -05:00
parent 566012f228
commit 748cd27ad0
2 changed files with 7 additions and 3 deletions

View File

@ -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();

View File

@ -167,7 +167,7 @@ async function formWrite(options) {
await ankiTemplatesUpdateValue();
await onAnkiOptionsChanged(options);
await onDictionaryOptionsChanged(options);
await onDictionaryOptionsChanged();
formUpdateVisibility(options);
}