diff options
author | vantezzen <hello@vantezzen.io> | 2019-10-02 11:51:48 +0200 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2019-10-02 11:51:48 +0200 |
commit | 2ae62093d346542fb5c946a066f918c6582a3f31 (patch) | |
tree | 283e734795bb6454275f7bf5441419ac358b02b1 /src/lib | |
parent | Fix webview logger throwing errors (diff) | |
download | ferdium-app-2ae62093d346542fb5c946a066f918c6582a3f31.tar.gz ferdium-app-2ae62093d346542fb5c946a066f918c6582a3f31.tar.zst ferdium-app-2ae62093d346542fb5c946a066f918c6582a3f31.zip |
Fix Ferdi Lock not corrently locking
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.js | 11 |
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 | ||