aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/SettingsStore.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2017-11-12 22:09:22 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2017-11-12 22:09:22 +0100
commit11605e3cfd6b07f8b03ab48e63d531b960192c79 (patch)
treef553e9a5c63dc57b9e7ad8e06ab6c3d718df4fa2 /src/stores/SettingsStore.js
parentes6 refactor (diff)
parentMerge pull request #263 from meetfranz/feature/mute-service (diff)
downloadferdium-app-11605e3cfd6b07f8b03ab48e63d531b960192c79.tar.gz
ferdium-app-11605e3cfd6b07f8b03ab48e63d531b960192c79.tar.zst
ferdium-app-11605e3cfd6b07f8b03ab48e63d531b960192c79.zip
Merge branch 'develop' into feature/spellcheck-settings
Diffstat (limited to 'src/stores/SettingsStore.js')
-rw-r--r--src/stores/SettingsStore.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js
index 331df5c15..ad3c53ccf 100644
--- a/src/stores/SettingsStore.js
+++ b/src/stores/SettingsStore.js
@@ -35,9 +35,13 @@ export default class SettingsStore extends Store {
35 35
36 @action async _update({ settings }) { 36 @action async _update({ settings }) {
37 await this.updateSettingsRequest.execute(settings)._promise; 37 await this.updateSettingsRequest.execute(settings)._promise;
38 await this.allSettingsRequest.invalidate({ immediately: true }); 38 this.allSettingsRequest.patch((result) => {
39 if (!result) return;
40 Object.assign(result, settings);
41 });
39 42
40 this._shareSettingsWithMainProcess(); 43 // We need a little hack to wait until everything is patched
44 setTimeout(() => this._shareSettingsWithMainProcess(), 0);
41 45
42 gaEvent('Settings', 'update'); 46 gaEvent('Settings', 'update');
43 } 47 }