diff options
author | Stefan Malzner <stefan@adlk.io> | 2018-12-09 22:08:36 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2018-12-09 22:08:36 +0100 |
commit | b7c2c22082e0210e84450a2bf813b500fdfc3312 (patch) | |
tree | 0361b66f59cfb14a344ed0b8e10f315454f26569 /src | |
parent | Add port option to service proxy config (diff) | |
download | ferdium-app-b7c2c22082e0210e84450a2bf813b500fdfc3312.tar.gz ferdium-app-b7c2c22082e0210e84450a2bf813b500fdfc3312.tar.zst ferdium-app-b7c2c22082e0210e84450a2bf813b500fdfc3312.zip |
Update mobx
Diffstat (limited to 'src')
-rw-r--r-- | src/stores/SettingsStore.js | 8 |
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 @@ | |||
1 | import { ipcRenderer } from 'electron'; | 1 | import { ipcRenderer } from 'electron'; |
2 | import { action, computed, observable } from 'mobx'; | 2 | import { |
3 | action, computed, observable, set, | ||
4 | } from 'mobx'; | ||
3 | import localStorage from 'mobx-localstorage'; | 5 | import localStorage from 'mobx-localstorage'; |
4 | 6 | ||
5 | import Store from './lib/Store'; | 7 | import 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 | ||