diff options
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r-- | src/stores/AppStore.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 38edff1b4..76d9bfa53 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -17,7 +17,7 @@ import { getServiceIdsFromPartitions, removeServicePartitionDirectory } from '.. | |||
17 | 17 | ||
18 | const debug = require('debug')('AppStore'); | 18 | const debug = require('debug')('AppStore'); |
19 | 19 | ||
20 | const { app } = remote; | 20 | const { app, systemPreferences } = remote; |
21 | 21 | ||
22 | const mainWindow = remote.getCurrentWindow(); | 22 | const mainWindow = remote.getCurrentWindow(); |
23 | 23 | ||
@@ -50,6 +50,8 @@ export default class AppStore extends Store { | |||
50 | 50 | ||
51 | @observable isSystemMuteOverridden = false; | 51 | @observable isSystemMuteOverridden = false; |
52 | 52 | ||
53 | @observable isSystemDarkModeEnabled = false; | ||
54 | |||
53 | @observable isClearingAllCache = false; | 55 | @observable isClearingAllCache = false; |
54 | 56 | ||
55 | @observable isFullScreen = mainWindow.isFullScreen(); | 57 | @observable isFullScreen = mainWindow.isFullScreen(); |
@@ -159,6 +161,8 @@ export default class AppStore extends Store { | |||
159 | this.locale = this._getDefaultLocale(); | 161 | this.locale = this._getDefaultLocale(); |
160 | 162 | ||
161 | this._healthCheck(); | 163 | this._healthCheck(); |
164 | |||
165 | this.isSystemDarkModeEnabled = systemPreferences.isDarkMode(); | ||
162 | } | 166 | } |
163 | 167 | ||
164 | @computed get cacheSize() { | 168 | @computed get cacheSize() { |