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/routes.js | |
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/routes.js')
-rw-r--r-- | src/routes.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes.js b/src/routes.js index 5af0c4db9..4d32a59e0 100644 --- a/src/routes.js +++ b/src/routes.js | |||
@@ -35,11 +35,11 @@ export default | |||
35 | @observer | 35 | @observer |
36 | class Routes extends Component { | 36 | class Routes extends Component { |
37 | render() { | 37 | render() { |
38 | const { locked, lockingFeatureEnabled } = this.props.stores.settings.app; | 38 | const { locked } = this.props.stores.settings.app; |
39 | 39 | ||
40 | const { history } = this.props; | 40 | const { history } = this.props; |
41 | 41 | ||
42 | if (lockingFeatureEnabled && locked) { | 42 | if (locked) { |
43 | return <LockedScreen />; | 43 | return <LockedScreen />; |
44 | } | 44 | } |
45 | 45 | ||