aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/Menu.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2019-10-02 11:51:48 +0200
committerLibravatar vantezzen <hello@vantezzen.io>2019-10-02 11:51:48 +0200
commit2ae62093d346542fb5c946a066f918c6582a3f31 (patch)
tree283e734795bb6454275f7bf5441419ac358b02b1 /src/lib/Menu.js
parentFix webview logger throwing errors (diff)
downloadferdium-app-2ae62093d346542fb5c946a066f918c6582a3f31.tar.gz
ferdium-app-2ae62093d346542fb5c946a066f918c6582a3f31.tar.zst
ferdium-app-2ae62093d346542fb5c946a066f918c6582a3f31.zip
Fix Ferdi Lock not corrently locking
Diffstat (limited to 'src/lib/Menu.js')
-rw-r--r--src/lib/Menu.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js
index 183ae6472..beaafb4d1 100644
--- a/src/lib/Menu.js
+++ b/src/lib/Menu.js
@@ -783,12 +783,21 @@ export default class FranzMenu {
783 accelerator: 'CmdOrCtrl+Shift+L', 783 accelerator: 'CmdOrCtrl+Shift+L',
784 enabled: this.stores.settings.app.lockingFeatureEnabled, 784 enabled: this.stores.settings.app.lockingFeatureEnabled,
785 click() { 785 click() {
786 // Disable lock first - otherwise the application might not update correctly
786 actions.settings.update({ 787 actions.settings.update({
787 type: 'app', 788 type: 'app',
788 data: { 789 data: {
789 locked: true, 790 locked: false,
790 }, 791 },
791 }); 792 });
793 setTimeout(() => {
794 actions.settings.update({
795 type: 'app',
796 data: {
797 locked: true,
798 },
799 });
800 }, 0);
792 }, 801 },
793 }); 802 });
794 803