diff options
Diffstat (limited to 'src/lib/Menu.js')
-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 | ||