mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-13 20:28:31 +10:00
Don't show jump list for Settings application
It reports just one category with unsupported type, thus jump-list will be empty. Fixes #487.
This commit is contained in:
@@ -198,7 +198,13 @@ bool HasJumplist( const wchar_t *appid )
|
|||||||
{
|
{
|
||||||
UINT count;
|
UINT count;
|
||||||
if (SUCCEEDED(pCustomList->GetCategoryCount(&count)) && count>0)
|
if (SUCCEEDED(pCustomList->GetCategoryCount(&count)) && count>0)
|
||||||
|
{
|
||||||
|
// skip Settings app (it reports one category with unsupported type, thus jump-list will be empty)
|
||||||
|
if (wcscmp(appid, L"windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel") == 0)
|
||||||
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CAutomaticList(appid).HasList())
|
if (CAutomaticList(appid).HasList())
|
||||||
|
|||||||
Reference in New Issue
Block a user