From 131ff747393a812edca2d9f62f8e4f3f291a3519 Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Wed, 9 Mar 2022 22:35:49 +0200 Subject: [PATCH] Taskbar10: Read taskbar buttons visibility settings at startup --- ExplorerPatcher/dllmain.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 8f73331..74476ac 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -6896,7 +6896,7 @@ void WINAPI Explorer_RefreshUI(int src) { HKEY hKey = NULL; DWORD dwSize = 0, dwTemp = 0, dwRefreshMask = 0; - if (src == 1) + if (src == 99 || src == 1) { RegCreateKeyExW( HKEY_CURRENT_USER, @@ -6958,7 +6958,7 @@ void WINAPI Explorer_RefreshUI(int src) //SearchboxTaskbarMode } } - if (src == 2) + if (src == 99 || src == 2) { RegCreateKeyExW( HKEY_CURRENT_USER, @@ -6994,6 +6994,7 @@ void WINAPI Explorer_RefreshUI(int src) } } } + if (src == 99) return; SendNotifyMessageW(HWND_BROADCAST, WM_WININICHANGE, 0, (LPARAM)L"TraySettings"); Explorer_RefreshClock(0); if (dwRefreshMask & REFRESHUI_CENTER) @@ -8814,6 +8815,7 @@ DWORD Inject(BOOL bIsExplorer) } LoadSettings(MAKELPARAM(bIsExplorer, FALSE)); + Explorer_RefreshUI(99); #ifdef _WIN64 if (bIsExplorer)