From ba083598004d5b925a2fd159415496631bd66bff Mon Sep 17 00:00:00 2001 From: vantezzen Date: Wed, 2 Oct 2019 11:48:40 +0200 Subject: Fix Ferdi Lock not locking on startup --- src/stores/SettingsStore.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/stores/SettingsStore.js') diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index c09f24af7..8c4cd47eb 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js @@ -71,12 +71,21 @@ export default class SettingsStore extends Store { // Make sure to lock app on launch if locking feature is enabled setTimeout(() => { if (this.all.app.lockingFeatureEnabled) { + // Disable lock first - otherwise the lock might not get activated corrently this.actions.settings.update({ type: 'app', data: { - locked: true, + locked: false, }, }); + setTimeout(() => { + this.actions.settings.update({ + type: 'app', + data: { + locked: true, + }, + }); + }, 0); } }, 1000); } -- cgit v1.2.3-54-g00ecf