aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2024-02-11 12:07:30 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2024-02-11 17:43:49 +0000
commit226257cd862451abccc28894e2b0a3270c6790e9 (patch)
tree3c6516bfe1bcc258ce40afa6af6cbd9582961ad9 /src/stores
parentUpdate dependabot.yml to handle both app and GHA dependencies (diff)
downloadferdium-app-226257cd862451abccc28894e2b0a3270c6790e9.tar.gz
ferdium-app-226257cd862451abccc28894e2b0a3270c6790e9.tar.zst
ferdium-app-226257cd862451abccc28894e2b0a3270c6790e9.zip
rename features to better convey type
(without migration)
Diffstat (limited to 'src/stores')
-rw-r--r--src/stores/AppStore.ts4
-rw-r--r--src/stores/SettingsStore.ts4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/stores/AppStore.ts b/src/stores/AppStore.ts
index b8c980dea..b8356bd56 100644
--- a/src/stores/AppStore.ts
+++ b/src/stores/AppStore.ts
@@ -121,8 +121,8 @@ export default class AppStore extends TypedStore {
121 121
122 @observable isFocused = true; 122 @observable isFocused = true;
123 123
124 @observable lockingFeatureEnabled = 124 @observable isLockingFeatureEnabled =
125 DEFAULT_APP_SETTINGS.lockingFeatureEnabled; 125 DEFAULT_APP_SETTINGS.isLockingFeatureEnabled;
126 126
127 @observable launchInBackground = DEFAULT_APP_SETTINGS.autoLaunchInBackground; 127 @observable launchInBackground = DEFAULT_APP_SETTINGS.autoLaunchInBackground;
128 128
diff --git a/src/stores/SettingsStore.ts b/src/stores/SettingsStore.ts
index 2e8568134..010290a4a 100644
--- a/src/stores/SettingsStore.ts
+++ b/src/stores/SettingsStore.ts
@@ -61,7 +61,7 @@ export default class SettingsStore extends TypedStore {
61 let inactivityTimer; 61 let inactivityTimer;
62 getCurrentWindow().on('blur', () => { 62 getCurrentWindow().on('blur', () => {
63 if ( 63 if (
64 this.all.app.lockingFeatureEnabled && 64 this.all.app.isLockingFeatureEnabled &&
65 this.all.app.inactivityLock !== 0 65 this.all.app.inactivityLock !== 0
66 ) { 66 ) {
67 inactivityTimer = setTimeout( 67 inactivityTimer = setTimeout(
@@ -88,7 +88,7 @@ export default class SettingsStore extends TypedStore {
88 if ( 88 if (
89 !this.loaded && 89 !this.loaded &&
90 resp.type === 'app' && 90 resp.type === 'app' &&
91 resp.data.lockingFeatureEnabled 91 resp.data.isLockingFeatureEnabled
92 ) { 92 ) {
93 process.nextTick(() => { 93 process.nextTick(() => {
94 if (!this.all.app.locked) { 94 if (!this.all.app.locked) {