Skip to content

Commit 1b013c3

Browse files
committed
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.
1 parent cef27bd commit 1b013c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Src/StartMenu/StartMenuDLL/MenuCommands.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2811,6 +2811,10 @@ void CMenuContainer::ActivateItem( int index, TActivateType type, const POINT *p
28112811
if (bRefresh || bRefreshMain)
28122812
info.fMask|=CMIC_MASK_NOASYNC; // wait for delete/link commands to finish so we can refresh the menu
28132813

2814+
// we don't want our virtual folder to appear in Explorer's frequent list
2815+
if (wcsncmp(item.pItemInfo->PATH, L"::{82E749ED-B971-4550-BAF7-06AA2BF7E836}", 40) == 0)
2816+
info.fMask &= ~CMIC_MASK_FLAG_LOG_USAGE;
2817+
28142818
s_bPreventClosing=true;
28152819
for (auto& it : s_Menus)
28162820
{

0 commit comments

Comments
 (0)