diff options
author | 2021-10-01 22:13:42 +0530 | |
---|---|---|
committer | 2021-10-01 22:13:42 +0530 | |
commit | d4afc1eec9706d0027ad4b44421f8868688d1969 (patch) | |
tree | 3e43ed144c8f76f8c21f738d8c0703490c577afe /src/stores | |
parent | refactor: split 'environment' into 'environment-remote' with only the remote ... (diff) | |
download | ferdium-app-d4afc1eec9706d0027ad4b44421f8868688d1969.tar.gz ferdium-app-d4afc1eec9706d0027ad4b44421f8868688d1969.tar.zst ferdium-app-d4afc1eec9706d0027ad4b44421f8868688d1969.zip |
refactor: move 'DEFAULT_APP_SETTINGS' from 'environment' to 'config' since it doesn't depend on the running process any more.
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/AppStore.js | 3 | ||||
-rw-r--r-- | src/stores/SettingsStore.js | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 83e6a899b..3d9d2b551 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -16,9 +16,8 @@ import { readJsonSync } from 'fs-extra'; | |||
16 | 16 | ||
17 | import Store from './lib/Store'; | 17 | import Store from './lib/Store'; |
18 | import Request from './lib/Request'; | 18 | import Request from './lib/Request'; |
19 | import { CHECK_INTERVAL } from '../config'; | 19 | import { CHECK_INTERVAL, DEFAULT_APP_SETTINGS } from '../config'; |
20 | import { | 20 | import { |
21 | DEFAULT_APP_SETTINGS, | ||
22 | isMac, | 21 | isMac, |
23 | electronVersion, | 22 | electronVersion, |
24 | osRelease, | 23 | osRelease, |
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index 4b203101a..ec80fee7c 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js | |||
@@ -2,8 +2,7 @@ import { ipcRenderer } from 'electron'; | |||
2 | import { getCurrentWindow } from '@electron/remote'; | 2 | import { getCurrentWindow } from '@electron/remote'; |
3 | import { action, computed, observable, reaction } from 'mobx'; | 3 | import { action, computed, observable, reaction } from 'mobx'; |
4 | import localStorage from 'mobx-localstorage'; | 4 | import localStorage from 'mobx-localstorage'; |
5 | import { FILE_SYSTEM_SETTINGS_TYPES, LOCAL_SERVER } from '../config'; | 5 | import { DEFAULT_APP_SETTINGS, FILE_SYSTEM_SETTINGS_TYPES, LOCAL_SERVER } from '../config'; |
6 | import { DEFAULT_APP_SETTINGS } from '../environment'; | ||
7 | import { hash } from '../helpers/password-helpers'; | 6 | import { hash } from '../helpers/password-helpers'; |
8 | import Request from './lib/Request'; | 7 | import Request from './lib/Request'; |
9 | import Store from './lib/Store'; | 8 | import Store from './lib/Store'; |