aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/stores/SettingsStore.js11
1 files changed, 10 insertions, 1 deletions
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 {
71 // Make sure to lock app on launch if locking feature is enabled 71 // Make sure to lock app on launch if locking feature is enabled
72 setTimeout(() => { 72 setTimeout(() => {
73 if (this.all.app.lockingFeatureEnabled) { 73 if (this.all.app.lockingFeatureEnabled) {
74 // Disable lock first - otherwise the lock might not get activated corrently
74 this.actions.settings.update({ 75 this.actions.settings.update({
75 type: 'app', 76 type: 'app',
76 data: { 77 data: {
77 locked: true, 78 locked: false,
78 }, 79 },
79 }); 80 });
81 setTimeout(() => {
82 this.actions.settings.update({
83 type: 'app',
84 data: {
85 locked: true,
86 },
87 });
88 }, 0);
80 } 89 }
81 }, 1000); 90 }, 1000);
82 } 91 }