aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/AppStore.ts
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-07-14 07:01:38 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-07-14 16:02:04 +0530
commit1b26ba7475d98dedb2e0d3c54cad5be8c3b724c7 (patch)
tree3dfe3ead0ef47eb4129b1f26ac6e9db251a2b609 /src/stores/AppStore.ts
parent6.0.0-nightly.100 [skip ci] (diff)
downloadferdium-app-1b26ba7475d98dedb2e0d3c54cad5be8c3b724c7.tar.gz
ferdium-app-1b26ba7475d98dedb2e0d3c54cad5be8c3b724c7.tar.zst
ferdium-app-1b26ba7475d98dedb2e0d3c54cad5be8c3b724c7.zip
Use defaults defined in one place instead of hardcoding in multiple places
Diffstat (limited to 'src/stores/AppStore.ts')
-rw-r--r--src/stores/AppStore.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts
index 7f281a8ca..116e64756 100644
--- a/src/stores/AppStore.ts
+++ b/src/stores/AppStore.ts
@@ -70,7 +70,7 @@ export default class AppStore extends TypedStore {
70 70
71 @observable clearAppCacheRequest = new Request(this.api.local, 'clearCache'); 71 @observable clearAppCacheRequest = new Request(this.api.local, 'clearCache');
72 72
73 @observable autoLaunchOnStart = true; 73 @observable autoLaunchOnStart = DEFAULT_APP_SETTINGS.autoLaunchOnStart;
74 74
75 @observable isOnline = navigator.onLine; 75 @observable isOnline = navigator.onLine;
76 76
@@ -94,9 +94,9 @@ export default class AppStore extends TypedStore {
94 94
95 @observable isFocused = true; 95 @observable isFocused = true;
96 96
97 @observable lockingFeatureEnabled = false; 97 @observable lockingFeatureEnabled = DEFAULT_APP_SETTINGS.lockingFeatureEnabled;
98 98
99 @observable launchInBackground = false; 99 @observable launchInBackground = DEFAULT_APP_SETTINGS.autoLaunchInBackground;
100 100
101 dictionaries = []; 101 dictionaries = [];
102 102