From bfb9af05b03f018069860de7a5b81be1a5bc6763 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Mon, 10 Apr 2023 22:30:30 +0200 Subject: [PATCH] Fix Settings not persisting, ooop --- src/shared/utils/SettingsStore.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shared/utils/SettingsStore.ts b/src/shared/utils/SettingsStore.ts index bedeecd..1441ca6 100644 --- a/src/shared/utils/SettingsStore.ts +++ b/src/shared/utils/SettingsStore.ts @@ -67,7 +67,7 @@ export class SettingsStore { * Set the data of the store. * This will update this.store and this.plain (and old references to them will be stale! Avoid storing them in variables) * - * Additionally, all global listeners (or those for pathToNotify, if specified) will be called with the new data + * Additionally, all global listeners (and those for pathToNotify, if specified) will be called with the new data * @param value New data * @param pathToNotify Optional path to notify instead of globally. Used to transfer path via ipc */ @@ -90,9 +90,9 @@ export class SettingsStore { } this.pathListeners.get(pathToNotify)?.forEach(cb => cb(v)); - } else { - this.globalListeners.forEach(cb => cb(value, "")); } + + this.globalListeners.forEach(cb => cb(value, "")); } /**