Fix top level settings notifying global listeners (#3166)

This commit is contained in:
Suffocate 2025-01-26 15:32:34 +00:00 committed by GitHub
parent aac5242dc8
commit 87cb1fd930
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: B5690EEEBB952194

View file

@ -167,6 +167,8 @@ export class SettingsStore<T extends object> {
this.globalListeners.forEach(cb => cb(root, settingPathStr));
this.pathListeners.get(settingPathStr)?.forEach(cb => cb(settingValue));
} else {
this.globalListeners.forEach(cb => cb(root, pathStr));
}
this.pathListeners.get(pathStr)?.forEach(cb => cb(value));