mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +00:00
fix dispatchUpdate
event emitter behavior
This commit is contained in:
parent
fc5eacf470
commit
ded175f652
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user