aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/SettingsStore.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2019-10-02 11:48:40 +0200
committerLibravatar vantezzen <hello@vantezzen.io>2019-10-02 11:48:40 +0200
commitba083598004d5b925a2fd159415496631bd66bff (patch)
tree9ea724fd8b39962b8bd176741526d338d57807dc /src/stores/SettingsStore.js
parentImplement #87 (diff)
downloadferdium-app-ba083598004d5b925a2fd159415496631bd66bff.tar.gz
ferdium-app-ba083598004d5b925a2fd159415496631bd66bff.tar.zst
ferdium-app-ba083598004d5b925a2fd159415496631bd66bff.zip
Fix Ferdi Lock not locking on startup
Diffstat (limited to 'src/stores/SettingsStore.js')
-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 }