Skip to content

Commit adebabd

Browse files
committed
Explorer plugin native context menu: hide duplicate functionality in the native context menu
1 parent d97382f commit adebabd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Helper/ShellContextMenuDisplayHelper.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,17 @@ private static extern uint GetMenuString(
6565
private const uint ContextMenuStartId = 0x0001;
6666
private const uint ContextMenuEndId = 0x7FFF;
6767

68-
// We haven't managed to make these work, so we don't display them in the context menu.
6968
private static readonly string[] IgnoredContextMenuCommands =
7069
{
71-
"share",
70+
// We haven't managed to make these work, so we don't display them in the context menu.
71+
"Share",
7272
"Windows.ModernShare",
7373
"PinToStartScreen",
74-
"CopyAsPath"
74+
"CopyAsPath",
75+
76+
// Hide functionality provided by the Explorer plugin itself
77+
"Copy",
78+
"Delete"
7579
};
7680

7781
#endregion

0 commit comments

Comments
 (0)