diff options
author | Sadetdin EYILI <sad270@users.noreply.github.com> | 2021-09-05 01:29:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-05 04:59:23 +0530 |
commit | eda54bbf7707d42ef0c9ebcf71d31bd1003da159 (patch) | |
tree | a456a58547e32628d1e1e4208958db79e88b717c /src/stores | |
parent | docs: improve contribution documentation (#1865) [skip ci] (diff) | |
download | ferdium-app-eda54bbf7707d42ef0c9ebcf71d31bd1003da159.tar.gz ferdium-app-eda54bbf7707d42ef0c9ebcf71d31bd1003da159.tar.zst ferdium-app-eda54bbf7707d42ef0c9ebcf71d31bd1003da159.zip |
fix: ferdi locking with lock feature disabled (#1866)
Set run the inactivity timeout only if lock feature is enabled, and use same condition between lock
screen and locked menu
fix #1862
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/SettingsStore.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index f551e1e49..9aade974c 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js | |||
@@ -65,7 +65,7 @@ export default class SettingsStore extends Store { | |||
65 | // Inactivity lock timer | 65 | // Inactivity lock timer |
66 | let inactivityTimer; | 66 | let inactivityTimer; |
67 | getCurrentWindow().on('blur', () => { | 67 | getCurrentWindow().on('blur', () => { |
68 | if (this.all.app.inactivityLock !== 0) { | 68 | if (this.all.app.lockingFeatureEnabled && this.all.app.inactivityLock !== 0) { |
69 | inactivityTimer = setTimeout(() => { | 69 | inactivityTimer = setTimeout(() => { |
70 | this.actions.settings.update({ | 70 | this.actions.settings.update({ |
71 | type: 'app', | 71 | type: 'app', |