aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/SettingsStore.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/SettingsStore.ts')
-rw-r--r--src/stores/SettingsStore.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stores/SettingsStore.ts b/src/stores/SettingsStore.ts
index 811bc6f76..5ca499160 100644
--- a/src/stores/SettingsStore.ts
+++ b/src/stores/SettingsStore.ts
@@ -157,10 +157,7 @@ export default class SettingsStore extends TypedStore {
157 157
158 @action async _update({ type, data }): Promise<void> { 158 @action async _update({ type, data }): Promise<void> {
159 const appSettings = this.all; 159 const appSettings = this.all;
160 if (!this.fileSystemSettingsTypes.includes(type)) { 160 if (this.fileSystemSettingsTypes.includes(type)) {
161 debug('Update settings', type, data, this.all);
162 localStorage.setItem(type, Object.assign(appSettings[type], data));
163 } else {
164 debug('Update settings on file system', type, data); 161 debug('Update settings on file system', type, data);
165 ipcRenderer.send('updateAppSettings', { 162 ipcRenderer.send('updateAppSettings', {
166 type, 163 type,
@@ -168,6 +165,9 @@ export default class SettingsStore extends TypedStore {
168 }); 165 });
169 166
170 Object.assign(this._fileSystemSettingsCache[type], data); 167 Object.assign(this._fileSystemSettingsCache[type], data);
168 } else {
169 debug('Update settings', type, data, this.all);
170 localStorage.setItem(type, Object.assign(appSettings[type], data));
171 } 171 }
172 } 172 }
173 173