diff options
Diffstat (limited to 'src/stores/ServicesStore.js')
-rw-r--r-- | src/stores/ServicesStore.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index f65faa5a5..fda18b514 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), |
@@ -116,6 +117,11 @@ export default class ServicesStore extends Store { | |||
116 | ); | 117 | ); |
117 | 118 | ||
118 | reaction( | 119 | reaction( |
120 | () => this.stores.settings.app.adaptableDarkMode, | ||
121 | () => this._shareSettingsWithServiceProcess(), | ||
122 | ); | ||
123 | |||
124 | reaction( | ||
119 | () => this.stores.settings.app.universalDarkMode, | 125 | () => this.stores.settings.app.universalDarkMode, |
120 | () => this._shareSettingsWithServiceProcess(), | 126 | () => this._shareSettingsWithServiceProcess(), |
121 | ); | 127 | ); |
@@ -766,7 +772,10 @@ export default class ServicesStore extends Store { | |||
766 | } | 772 | } |
767 | 773 | ||
768 | _shareSettingsWithServiceProcess() { | 774 | _shareSettingsWithServiceProcess() { |
769 | const settings = this.stores.settings.app; | 775 | const settings = { |
776 | ...this.stores.settings.app, | ||
777 | isDarkThemeActive: this.stores.ui.isDarkThemeActive, | ||
778 | }; | ||
770 | this.actions.service.sendIPCMessageToAllServices({ | 779 | this.actions.service.sendIPCMessageToAllServices({ |
771 | channel: 'settings-update', | 780 | channel: 'settings-update', |
772 | args: settings, | 781 | args: settings, |