Remove option for dictionaries that aren't installed after changing values
This commit is contained in:
parent
55047def9d
commit
8eaa0334ac
@ -445,7 +445,14 @@ async function updateMainDictionarySelectValue() {
|
||||
}
|
||||
|
||||
async function onDictionaryMainChanged(e) {
|
||||
const value = e.target.value;
|
||||
const select = e.target;
|
||||
const value = select.value;
|
||||
|
||||
const missingNodeOption = select.querySelector('option[data-not-installed=true]');
|
||||
if (missingNodeOption !== null && missingNodeOption.value !== value) {
|
||||
missingNodeOption.parentNode.removeChild(missingNodeOption);
|
||||
}
|
||||
|
||||
const optionsContext = getOptionsContext();
|
||||
const options = await getOptionsMutable(optionsContext);
|
||||
options.general.mainDictionary = value;
|
||||
|
Loading…
Reference in New Issue
Block a user