From 8af788f034f858e37cff273900766f337d9ecf3d Mon Sep 17 00:00:00 2001 From: Amine Mouafik Date: Sat, 22 Feb 2020 01:59:21 +0100 Subject: Simply update locked state --- src/components/layout/Sidebar.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/components/layout') diff --git a/src/components/layout/Sidebar.js b/src/components/layout/Sidebar.js index 48a83c5a1..bd10ccb4a 100644 --- a/src/components/layout/Sidebar.js +++ b/src/components/layout/Sidebar.js @@ -118,21 +118,12 @@ export default @inject('stores', 'actions') @observer class Sidebar extends Comp type="button" className="sidebar__button" onClick={() => { - // Disable lock first - otherwise the application might not update correctly actions.settings.update({ type: 'app', data: { - locked: false, + locked: true, }, }); - setTimeout(() => { - actions.settings.update({ - type: 'app', - data: { - locked: true, - }, - }); - }, 0); }} data-tip={`${intl.formatMessage(messages.lockFerdi)} (${ctrlKey}+Shift+L)`} > -- cgit v1.2.3-70-g09d2