From 2ae62093d346542fb5c946a066f918c6582a3f31 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Wed, 2 Oct 2019 11:51:48 +0200 Subject: Fix Ferdi Lock not corrently locking --- src/lib/Menu.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/lib/Menu.js') 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 { accelerator: 'CmdOrCtrl+Shift+L', enabled: this.stores.settings.app.lockingFeatureEnabled, click() { + // Disable lock first - otherwise the application might not update correctly actions.settings.update({ type: 'app', data: { - locked: true, + locked: false, }, }); + setTimeout(() => { + actions.settings.update({ + type: 'app', + data: { + locked: true, + }, + }); + }, 0); }, }); -- cgit v1.2.3-70-g09d2