aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/layout
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/components/layout
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/components/layout')
-rw-r--r--src/components/layout/Sidebar.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/components/layout/Sidebar.js b/src/components/layout/Sidebar.js
index 1d6bfee33..d0cae3443 100644
--- a/src/components/layout/Sidebar.js
+++ b/src/components/layout/Sidebar.js
@@ -118,12 +118,21 @@ export default @inject('stores', 'actions') @observer class Sidebar extends Comp
118 type="button" 118 type="button"
119 className={`sidebar__button sidebar__button--audio ${isAppMuted ? 'is-muted' : ''}`} 119 className={`sidebar__button sidebar__button--audio ${isAppMuted ? 'is-muted' : ''}`}
120 onClick={() => { 120 onClick={() => {
121 // Disable lock first - otherwise the application might not update correctly
121 actions.settings.update({ 122 actions.settings.update({
122 type: 'app', 123 type: 'app',
123 data: { 124 data: {
124 locked: true, 125 locked: false,
125 }, 126 },
126 }); 127 });
128 setTimeout(() => {
129 actions.settings.update({
130 type: 'app',
131 data: {
132 locked: true,
133 },
134 });
135 }, 0);
127 }} 136 }}
128 data-tip={`${intl.formatMessage(messages.lockFerdi)} (${ctrlKey}+Shift+L)`} 137 data-tip={`${intl.formatMessage(messages.lockFerdi)} (${ctrlKey}+Shift+L)`}
129 > 138 >