aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/SettingsStore.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-12-09 22:08:36 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-12-09 22:08:36 +0100
commitb7c2c22082e0210e84450a2bf813b500fdfc3312 (patch)
tree0361b66f59cfb14a344ed0b8e10f315454f26569 /src/stores/SettingsStore.js
parentAdd port option to service proxy config (diff)
downloadferdium-app-b7c2c22082e0210e84450a2bf813b500fdfc3312.tar.gz
ferdium-app-b7c2c22082e0210e84450a2bf813b500fdfc3312.tar.zst
ferdium-app-b7c2c22082e0210e84450a2bf813b500fdfc3312.zip
Update mobx
Diffstat (limited to 'src/stores/SettingsStore.js')
-rw-r--r--src/stores/SettingsStore.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js
index ee391f5d3..a456195bf 100644
--- a/src/stores/SettingsStore.js
+++ b/src/stores/SettingsStore.js
@@ -1,5 +1,7 @@
1import { ipcRenderer } from 'electron'; 1import { ipcRenderer } from 'electron';
2import { action, computed, observable } from 'mobx'; 2import {
3 action, computed, observable, set,
4} from 'mobx';
3import localStorage from 'mobx-localstorage'; 5import localStorage from 'mobx-localstorage';
4 6
5import Store from './lib/Store'; 7import Store from './lib/Store';
@@ -17,7 +19,7 @@ export default class SettingsStore extends Store {
17 19
18 @observable updateAppSettingsRequest = new Request(this.api.local, 'updateAppSettings'); 20 @observable updateAppSettingsRequest = new Request(this.api.local, 'updateAppSettings');
19 21
20 @observable fileSystemSettingsRequests = []; 22 fileSystemSettingsRequests = [];
21 23
22 fileSystemSettingsTypes = FILE_SYSTEM_SETTINGS_TYPES; 24 fileSystemSettingsTypes = FILE_SYSTEM_SETTINGS_TYPES;
23 25
@@ -115,7 +117,7 @@ export default class SettingsStore extends Store {
115 data, 117 data,
116 }); 118 });
117 119
118 Object.assign(this._fileSystemSettingsCache[type], data); 120 set(this._fileSystemSettingsCache[type], data);
119 } 121 }
120 } 122 }
121 123