mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
fix dispatchUpdate
event emitter behavior
This commit is contained in:
parent
c789dfdda9
commit
a051f41f28
@ -91,6 +91,10 @@ const SettingItem = (props) => {
|
||||
}
|
||||
}
|
||||
|
||||
if (item.storaged) {
|
||||
await window.app.settings.set(item.id, updateValue)
|
||||
}
|
||||
|
||||
if (typeof item.emitEvent === "string") {
|
||||
let emissionPayload = updateValue
|
||||
|
||||
@ -105,10 +109,6 @@ const SettingItem = (props) => {
|
||||
return false
|
||||
}
|
||||
|
||||
if (item.storaged) {
|
||||
await window.app.settings.set(item.id, updateValue)
|
||||
}
|
||||
|
||||
if (item.debounced) {
|
||||
setDelayedValue(null)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user