diff options
Diffstat (limited to 'src/stores/SettingsStore.js')
-rw-r--r-- | src/stores/SettingsStore.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index 7cd7c9114..c301eaf82 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js | |||
@@ -40,7 +40,8 @@ export default class SettingsStore extends Store { | |||
40 | Object.assign(result, settings); | 40 | Object.assign(result, settings); |
41 | }); | 41 | }); |
42 | 42 | ||
43 | this._shareSettingsWithMainProcess(); | 43 | // We need a little hack to wait until everything is patched |
44 | setTimeout(() => this._shareSettingsWithMainProcess(), 0); | ||
44 | 45 | ||
45 | gaEvent('Settings', 'update'); | 46 | gaEvent('Settings', 'update'); |
46 | } | 47 | } |
@@ -54,6 +55,7 @@ export default class SettingsStore extends Store { | |||
54 | 55 | ||
55 | // Reactions | 56 | // Reactions |
56 | _shareSettingsWithMainProcess() { | 57 | _shareSettingsWithMainProcess() { |
58 | console.log(this.all); | ||
57 | ipcRenderer.send('settings', this.all); | 59 | ipcRenderer.send('settings', this.all); |
58 | } | 60 | } |
59 | } | 61 | } |