From 148e398b8c8e4c885e674270707fa01194b65c27 Mon Sep 17 00:00:00 2001 From: Amrsatrio Date: Sun, 1 Oct 2023 22:17:15 +0700 Subject: [PATCH] Start10: Made `SyncSettingsFromRegToCDS()` to only run when the old start menu is enabled --- ExplorerPatcher/dllmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index a175c95..d4ffadc 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -12337,7 +12337,7 @@ int Start_SetWindowRgn(HWND hWnd, HRGN hRgn, BOOL bRedraw) SetWindowPos(hWnd, NULL, mi.rcWork.left, mi.rcWork.top, 0, 0, SWP_NOSIZE | SWP_FRAMECHANGED | SWP_ASYNCWINDOWPOS); } } - if (bIsWindowVisible && IsWindows11Version22H2Build2134OrHigher()) + if (bIsWindowVisible && dwStartShowClassicMode && IsWindows11Version22H2Build2134OrHigher()) { extern void NeedsRo_SyncSettingsFromRegToCDS(); NeedsRo_SyncSettingsFromRegToCDS();