fix dispatchUpdate event emitter behavior

This commit is contained in:
SrGooglo 2022-11-19 05:05:51 +00:00
parent fc5eacf470
commit ded175f652

View File

@ -91,6 +91,10 @@ const SettingItem = (props) => {
} }
} }
if (item.storaged) {
await window.app.settings.set(item.id, updateValue)
}
if (typeof item.emitEvent === "string") { if (typeof item.emitEvent === "string") {
let emissionPayload = updateValue let emissionPayload = updateValue
@ -105,10 +109,6 @@ const SettingItem = (props) => {
return false return false
} }
if (item.storaged) {
await window.app.settings.set(item.id, updateValue)
}
if (item.debounced) { if (item.debounced) {
setDelayedValue(null) setDelayedValue(null)
} }