aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/SettingsStore.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2017-11-10 23:13:46 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2017-11-10 23:13:46 +0100
commitc3eced0aee03004af82cd840b0e9e5d65c9557af (patch)
treea2be3e3496a4ed35a9f3b0af2757e3565a2567be /src/stores/SettingsStore.js
parentfix issue with unnecessary settings request invalidation (diff)
downloadferdium-app-c3eced0aee03004af82cd840b0e9e5d65c9557af.tar.gz
ferdium-app-c3eced0aee03004af82cd840b0e9e5d65c9557af.tar.zst
ferdium-app-c3eced0aee03004af82cd840b0e9e5d65c9557af.zip
fix issue with share settings with main process
Diffstat (limited to 'src/stores/SettingsStore.js')
-rw-r--r--src/stores/SettingsStore.js4
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}