From b95fff5bce3c706df3a551162d7209c60f4fd615 Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Wed, 28 Feb 2018 17:14:00 +0200 Subject: [PATCH] [EXPLORER] CTrayWindow: Set the initial lock state in the band site This alongside the previous commit, fix locking and unlocking the taskbar. --- base/shell/explorer/traywnd.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/shell/explorer/traywnd.cpp b/base/shell/explorer/traywnd.cpp index bf71ad0e172..a3c1f3670f1 100644 --- a/base/shell/explorer/traywnd.cpp +++ b/base/shell/explorer/traywnd.cpp @@ -2080,6 +2080,9 @@ ChangePos: SetTimer(TIMER_ID_AUTOHIDE, AUTOHIDE_DELAY_HIDE, NULL); } + /* Set the initial lock state in the band site */ + m_TrayBandSite->Lock(g_TaskbarSettings.bLock); + RegisterHotKey(m_hWnd, IDHK_RUN, MOD_WIN, 'R'); RegisterHotKey(m_hWnd, IDHK_MINIMIZE_ALL, MOD_WIN, 'M'); RegisterHotKey(m_hWnd, IDHK_RESTORE_ALL, MOD_WIN|MOD_SHIFT, 'M'); -- 2.17.1