Don't track usage of Open-Shell modern settings folder

This way `Open-Shell Modern Settings` folder won't appear in File
Explorer's frequent list.

Fixes #744.
This commit is contained in:
ge0rdi
2022-11-25 21:50:36 +01:00
parent cef27bdfa0
commit 1b013c3590

View File

@@ -2811,6 +2811,10 @@ void CMenuContainer::ActivateItem( int index, TActivateType type, const POINT *p
if (bRefresh || bRefreshMain)
info.fMask|=CMIC_MASK_NOASYNC; // wait for delete/link commands to finish so we can refresh the menu
// we don't want our virtual folder to appear in Explorer's frequent list
if (wcsncmp(item.pItemInfo->PATH, L"::{82E749ED-B971-4550-BAF7-06AA2BF7E836}", 40) == 0)
info.fMask &= ~CMIC_MASK_FLAG_LOG_USAGE;
s_bPreventClosing=true;
for (auto& it : s_Menus)
{