diff options
Diffstat (limited to 'src/stores/SettingsStore.js')
-rw-r--r-- | src/stores/SettingsStore.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index 9dc8d82d2..b7d803398 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js | |||
@@ -1,18 +1,12 @@ | |||
1 | import { ipcRenderer } from 'electron'; | 1 | import { ipcRenderer } from 'electron'; |
2 | import { action, computed, observable } from 'mobx'; | 2 | import { action, computed } from 'mobx'; |
3 | import localStorage from 'mobx-localstorage'; | 3 | import localStorage from 'mobx-localstorage'; |
4 | 4 | ||
5 | import Store from './lib/Store'; | 5 | import Store from './lib/Store'; |
6 | import Request from './lib/Request'; | ||
7 | import CachedRequest from './lib/CachedRequest'; | ||
8 | import { gaEvent } from '../lib/analytics'; | 6 | import { gaEvent } from '../lib/analytics'; |
9 | import SettingsModel from '../models/Settings'; | 7 | import SettingsModel from '../models/Settings'; |
10 | 8 | ||
11 | export default class SettingsStore extends Store { | 9 | export default class SettingsStore extends Store { |
12 | @observable allSettingsRequest = new CachedRequest(this.api.local, 'getSettings'); | ||
13 | @observable updateSettingsRequest = new Request(this.api.local, 'updateSettings'); | ||
14 | @observable removeSettingsKeyRequest = new Request(this.api.local, 'removeKey'); | ||
15 | |||
16 | constructor(...args) { | 10 | constructor(...args) { |
17 | super(...args); | 11 | super(...args); |
18 | 12 | ||
@@ -22,7 +16,6 @@ export default class SettingsStore extends Store { | |||
22 | } | 16 | } |
23 | 17 | ||
24 | setup() { | 18 | setup() { |
25 | this.allSettingsRequest.execute(); | ||
26 | this._shareSettingsWithMainProcess(); | 19 | this._shareSettingsWithMainProcess(); |
27 | } | 20 | } |
28 | 21 | ||