mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +00:00
improve setting update event
This commit is contained in:
parent
6c3f918109
commit
e85500a00f
@ -36,7 +36,8 @@ class SettingsController {
|
|||||||
this.settings[key] = value
|
this.settings[key] = value
|
||||||
store.set(this.storeKey, this.settings)
|
store.set(this.storeKey, this.settings)
|
||||||
|
|
||||||
window.app.eventBus.emit("setting_update", { key, value })
|
window.app.eventBus.emit("setting.update", { key, value })
|
||||||
|
window.app.eventBus.emit(`setting.update.${key}`, value)
|
||||||
|
|
||||||
return this.settings
|
return this.settings
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user