diff options
author | 2018-11-16 20:52:10 +0100 | |
---|---|---|
committer | 2018-11-16 20:52:10 +0100 | |
commit | 69e11a513e4e0ca43d0434f1d823b7f07ad81640 (patch) | |
tree | ec9be46d67dab87242116811e603a55fe740e28a /src | |
parent | use native electron.systemPreferences.isDarkMode() (diff) | |
download | ferdium-app-69e11a513e4e0ca43d0434f1d823b7f07ad81640.tar.gz ferdium-app-69e11a513e4e0ca43d0434f1d823b7f07ad81640.tar.zst ferdium-app-69e11a513e4e0ca43d0434f1d823b7f07ad81640.zip |
Fix systemPreferences.isDarkMode call
Diffstat (limited to 'src')
-rw-r--r-- | src/stores/AppStore.js | 4 | ||||
-rw-r--r-- | src/stores/SettingsStore.js | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index d1ed2596b..76d9bfa53 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -1,4 +1,4 @@ | |||
1 | import { remote, ipcRenderer, shell, systemPreferences } from 'electron'; | 1 | import { remote, ipcRenderer, shell } from 'electron'; |
2 | import { action, computed, observable } from 'mobx'; | 2 | import { action, computed, observable } from 'mobx'; |
3 | import moment from 'moment'; | 3 | import moment from 'moment'; |
4 | import key from 'keymaster'; | 4 | import key from 'keymaster'; |
@@ -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 | ||
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index 31165053d..4b5715628 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js | |||
@@ -1,4 +1,4 @@ | |||
1 | import { systemPreferences } from 'electron'; | 1 | import { remote } from 'electron'; |
2 | import { action, computed, observable } from 'mobx'; | 2 | import { action, computed, observable } from 'mobx'; |
3 | import localStorage from 'mobx-localstorage'; | 3 | import localStorage from 'mobx-localstorage'; |
4 | 4 | ||
@@ -7,6 +7,7 @@ import SettingsModel from '../models/Settings'; | |||
7 | import Request from './lib/Request'; | 7 | import Request from './lib/Request'; |
8 | import CachedRequest from './lib/CachedRequest'; | 8 | import CachedRequest from './lib/CachedRequest'; |
9 | 9 | ||
10 | const { systemPreferences } = remote; | ||
10 | const debug = require('debug')('SettingsStore'); | 11 | const debug = require('debug')('SettingsStore'); |
11 | 12 | ||
12 | export default class SettingsStore extends Store { | 13 | export default class SettingsStore extends Store { |