mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2024-11-28 01:10:55 +01:00
Start11: Respect "Layout" settings on 22621-based builds
Impact: The actual layout setting from Windows Settings - Personalization - Start is ignored and the "Default" layout setting is always used when displaying the Windows 11 Start menu on 22621-based builds when the setting to disable the "Recommended" section is NOT used in ExplorerPatcher Properties. Description: The issue has been addressed by remembering the current/ previous setting and using that when setting the height of the pinned area when the setting to disable the "Recommended" section is NOT used in ExplorerPatcher Properties, as opposed to the previous behavior where a hardcoded value was being used.
This commit is contained in:
parent
5048a4f76f
commit
2572a802db
@ -622,13 +622,17 @@ void LVT_StartDocked_DisableRecommendedSection(HWND hWnd, BOOL bApply)
|
|||||||
pStartMenuPinnedList->lpVtbl->QueryInterface(pStartMenuPinnedList, &IID_Windows_UI_Xaml_IFrameworkElement, &pFrameworkElement);
|
pStartMenuPinnedList->lpVtbl->QueryInterface(pStartMenuPinnedList, &IID_Windows_UI_Xaml_IFrameworkElement, &pFrameworkElement);
|
||||||
if (pFrameworkElement)
|
if (pFrameworkElement)
|
||||||
{
|
{
|
||||||
|
static double StartMenuPinnedList_Height = 252.0;
|
||||||
|
double tempStartMenuPinnedList_Height = 0.0;
|
||||||
|
if (SUCCEEDED(pFrameworkElement->lpVtbl->get_Height(pFrameworkElement, &tempStartMenuPinnedList_Height)) && tempStartMenuPinnedList_Height != 510.0) StartMenuPinnedList_Height = tempStartMenuPinnedList_Height;
|
||||||
|
|
||||||
if (bApply)
|
if (bApply)
|
||||||
{
|
{
|
||||||
pFrameworkElement->lpVtbl->put_Height(pFrameworkElement, 510.0);
|
pFrameworkElement->lpVtbl->put_Height(pFrameworkElement, 510.0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pFrameworkElement->lpVtbl->put_Height(pFrameworkElement, 252.0);
|
pFrameworkElement->lpVtbl->put_Height(pFrameworkElement, StartMenuPinnedList_Height);
|
||||||
}
|
}
|
||||||
pFrameworkElement->lpVtbl->Release(pFrameworkElement);
|
pFrameworkElement->lpVtbl->Release(pFrameworkElement);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user