diff options
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/AppStore.ts | 4 | ||||
-rw-r--r-- | src/stores/SettingsStore.ts | 4 |
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) { |