diff options
Diffstat (limited to 'src/stores/SettingsStore.js')
-rw-r--r-- | src/stores/SettingsStore.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index 4a42ed924..61528ba2c 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js | |||
@@ -1,4 +1,4 @@ | |||
1 | import { remote, ipcRenderer } from 'electron'; | 1 | import { ipcRenderer } 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 | ||
@@ -10,7 +10,6 @@ import { getLocale } from '../helpers/i18n-helpers'; | |||
10 | import { DEFAULT_APP_SETTINGS, FILE_SYSTEM_SETTINGS_TYPES } from '../config'; | 10 | import { DEFAULT_APP_SETTINGS, FILE_SYSTEM_SETTINGS_TYPES } from '../config'; |
11 | import { SPELLCHECKER_LOCALES } from '../i18n/languages'; | 11 | import { SPELLCHECKER_LOCALES } from '../i18n/languages'; |
12 | 12 | ||
13 | const { systemPreferences } = remote; | ||
14 | const debug = require('debug')('Franz:SettingsStore'); | 13 | const debug = require('debug')('Franz:SettingsStore'); |
15 | 14 | ||
16 | export default class SettingsStore extends Store { | 15 | export default class SettingsStore extends Store { |
@@ -37,7 +36,7 @@ export default class SettingsStore extends Store { | |||
37 | }); | 36 | }); |
38 | 37 | ||
39 | ipcRenderer.on('appSettings', (event, resp) => { | 38 | ipcRenderer.on('appSettings', (event, resp) => { |
40 | debug('Get appSettings resolves', resp, resp.type, resp.data); | 39 | debug('Get appSettings resolves', resp.type, resp.data); |
41 | 40 | ||
42 | this._fileSystemSettingsCache[resp.type] = resp.data; | 41 | this._fileSystemSettingsCache[resp.type] = resp.data; |
43 | }); | 42 | }); |
@@ -156,7 +155,6 @@ export default class SettingsStore extends Store { | |||
156 | debug('Migrated settings to split stores'); | 155 | debug('Migrated settings to split stores'); |
157 | } | 156 | } |
158 | 157 | ||
159 | // Enable dark mode once | ||
160 | if (!this.all.migration['5.0.0-beta.19-settings']) { | 158 | if (!this.all.migration['5.0.0-beta.19-settings']) { |
161 | const spellcheckerLanguage = getLocale({ | 159 | const spellcheckerLanguage = getLocale({ |
162 | locale: this.stores.settings.app.locale, | 160 | locale: this.stores.settings.app.locale, |
@@ -168,7 +166,6 @@ export default class SettingsStore extends Store { | |||
168 | this.actions.settings.update({ | 166 | this.actions.settings.update({ |
169 | type: 'app', | 167 | type: 'app', |
170 | data: { | 168 | data: { |
171 | darkMode: systemPreferences.isDarkMode(), | ||
172 | spellcheckerLanguage, | 169 | spellcheckerLanguage, |
173 | }, | 170 | }, |
174 | }); | 171 | }); |