Browse Source

Fix Hiding of Recommended Section on Win 11 24h2 (#4476)

* Fix hiding the 'recommended' section in win11 24h2

* Fix indentation

* fix wrong parent

---------

Co-authored-by: Matthew Wigley <>
pull/4527/head
m-wigley 4 months ago committed by GitHub
parent
commit
9106226861
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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