Browse Source

Fix hiding the 'recommended' section in win11 24h2

pull/4476/head
Matthew Wigley 4 months ago
parent
commit
6369d1a4b7
  1. 12
      ExplorerPatcher/lvt.c

12
ExplorerPatcher/lvt.c

@ -714,7 +714,13 @@ void LVT_StartDocked_DisableRecommendedSection(HWND hWnd, BOOL bApply, RECT* rec
Windows_UI_Xaml_IDependencyObject* pLauncherFrame = LVT_FindChildByClassName(pContentPresenter2, pVisualTreeHelperStatics, L"StartDocked.LauncherFrame", NULL); Windows_UI_Xaml_IDependencyObject* pLauncherFrame = LVT_FindChildByClassName(pContentPresenter2, pVisualTreeHelperStatics, L"StartDocked.LauncherFrame", NULL);
if (pLauncherFrame) if (pLauncherFrame)
{ {
Windows_UI_Xaml_IDependencyObject* pRootGrid = LVT_FindChildByName(pLauncherFrame, pVisualTreeHelperStatics, L"RootGrid"); Windows_UI_Xaml_IDependencyObject* pRootPanel = LVT_FindChildByName(pLauncherFrame, pVisualTreeHelperStatics, L"RootPanel");
Windows_UI_Xaml_IDependencyObject* pRootGridParent = pRootPanel;
if (!pRootGridParent)
{
pRootGridParent = pLauncherFrame;
}
Windows_UI_Xaml_IDependencyObject* pRootGrid = LVT_FindChildByName(pRootGridParent, pVisualTreeHelperStatics, L"RootGrid");
if (pRootGrid) if (pRootGrid)
{ {
Windows_UI_Xaml_IDependencyObject* pRootContent = LVT_FindChildByName(pRootGrid, pVisualTreeHelperStatics, L"RootContent"); Windows_UI_Xaml_IDependencyObject* pRootContent = LVT_FindChildByName(pRootGrid, pVisualTreeHelperStatics, L"RootContent");
@ -809,6 +815,10 @@ void LVT_StartDocked_DisableRecommendedSection(HWND hWnd, BOOL bApply, RECT* rec
} }
pRootGrid->lpVtbl->Release(pRootGrid); pRootGrid->lpVtbl->Release(pRootGrid);
} }
if (pRootPanel)
{
pRootPanel->lpVtbl->Release(pRootPanel);
}
pLauncherFrame->lpVtbl->Release(pLauncherFrame); pLauncherFrame->lpVtbl->Release(pLauncherFrame);
} }
pContentPresenter2->lpVtbl->Release(pContentPresenter2); pContentPresenter2->lpVtbl->Release(pContentPresenter2);

Loading…
Cancel
Save