diff options
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/ServicesStore.js | 6 | ||||
-rw-r--r-- | src/stores/UIStore.js | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index 3dd601bc3..731305141 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -83,6 +83,7 @@ export default class ServicesStore extends Store { | |||
83 | this.actions.service.openDevTools.listen(this._openDevTools.bind(this)); | 83 | this.actions.service.openDevTools.listen(this._openDevTools.bind(this)); |
84 | this.actions.service.openDevToolsForActiveService.listen(this._openDevToolsForActiveService.bind(this)); | 84 | this.actions.service.openDevToolsForActiveService.listen(this._openDevToolsForActiveService.bind(this)); |
85 | this.actions.service.setHibernation.listen(this._setHibernation.bind(this)); | 85 | this.actions.service.setHibernation.listen(this._setHibernation.bind(this)); |
86 | this.actions.service.shareSettingsWithServiceProcess.listen(this._shareSettingsWithServiceProcess.bind(this)); | ||
86 | 87 | ||
87 | this.registerReactions([ | 88 | this.registerReactions([ |
88 | this._focusServiceReaction.bind(this), | 89 | this._focusServiceReaction.bind(this), |
@@ -771,7 +772,10 @@ export default class ServicesStore extends Store { | |||
771 | } | 772 | } |
772 | 773 | ||
773 | _shareSettingsWithServiceProcess() { | 774 | _shareSettingsWithServiceProcess() { |
774 | const settings = this.stores.settings.app; | 775 | const settings = { |
776 | ...this.stores.settings.app, | ||
777 | isDarkThemeActive: this.stores.ui.isDarkThemeActive | ||
778 | }; | ||
775 | this.actions.service.sendIPCMessageToAllServices({ | 779 | this.actions.service.sendIPCMessageToAllServices({ |
776 | channel: 'settings-update', | 780 | channel: 'settings-update', |
777 | args: settings, | 781 | args: settings, |
diff --git a/src/stores/UIStore.js b/src/stores/UIStore.js index 7e6f89fed..5b9672798 100644 --- a/src/stores/UIStore.js +++ b/src/stores/UIStore.js | |||
@@ -32,6 +32,7 @@ export default class UIStore extends Store { | |||
32 | 'AppleInterfaceThemeChangedNotification', | 32 | 'AppleInterfaceThemeChangedNotification', |
33 | () => { | 33 | () => { |
34 | this.isOsDarkThemeActive = nativeTheme.shouldUseDarkColors; | 34 | this.isOsDarkThemeActive = nativeTheme.shouldUseDarkColors; |
35 | this.actions.service.shareSettingsWithServiceProcess(); | ||
35 | }, | 36 | }, |
36 | ); | 37 | ); |
37 | } | 38 | } |