mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-13 02:17:26 +10:00
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:
@@ -2811,6 +2811,10 @@ void CMenuContainer::ActivateItem( int index, TActivateType type, const POINT *p
|
|||||||
if (bRefresh || bRefreshMain)
|
if (bRefresh || bRefreshMain)
|
||||||
info.fMask|=CMIC_MASK_NOASYNC; // wait for delete/link commands to finish so we can refresh the menu
|
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;
|
s_bPreventClosing=true;
|
||||||
for (auto& it : s_Menus)
|
for (auto& it : s_Menus)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user