diff options
Diffstat (limited to 'src/stores/ServicesStore.js')
-rw-r--r-- | src/stores/ServicesStore.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index e22b343e7..8f217ea94 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -67,9 +67,14 @@ export default class ServicesStore extends Store { | |||
67 | } | 67 | } |
68 | 68 | ||
69 | setup() { | 69 | setup() { |
70 | // Single key reactions | 70 | // Single key reactions for the sake of your CPU |
71 | reaction( | 71 | reaction( |
72 | () => this.stores.settings.all.app.enableSpellchecking, | 72 | () => this.stores.settings.app.enableSpellchecking, |
73 | () => this._shareSettingsWithServiceProcess(), | ||
74 | ); | ||
75 | |||
76 | reaction( | ||
77 | () => this.stores.settings.app.spellcheckerLanguage, | ||
73 | () => this._shareSettingsWithServiceProcess(), | 78 | () => this._shareSettingsWithServiceProcess(), |
74 | ); | 79 | ); |
75 | } | 80 | } |
@@ -590,9 +595,10 @@ export default class ServicesStore extends Store { | |||
590 | } | 595 | } |
591 | 596 | ||
592 | _shareSettingsWithServiceProcess() { | 597 | _shareSettingsWithServiceProcess() { |
598 | const settings = this.stores.settings.app; | ||
593 | this.actions.service.sendIPCMessageToAllServices({ | 599 | this.actions.service.sendIPCMessageToAllServices({ |
594 | channel: 'settings-update', | 600 | channel: 'settings-update', |
595 | args: this.stores.settings.all.app, | 601 | args: settings, |
596 | }); | 602 | }); |
597 | } | 603 | } |
598 | 604 | ||