Explorer plugin native context menu: hide duplicate functionality in the native context menu

This commit is contained in:
Yusyuriv 2024-06-07 13:33:06 +06:00
parent d97382f9fb
commit adebabd824
No known key found for this signature in database
GPG key ID: A91C52E6F73148E0

View file

@ -65,13 +65,17 @@ public static class ShellContextMenuDisplayHelper
private const uint ContextMenuStartId = 0x0001;
private const uint ContextMenuEndId = 0x7FFF;
// We haven't managed to make these work, so we don't display them in the context menu.
private static readonly string[] IgnoredContextMenuCommands =
{
"share",
// We haven't managed to make these work, so we don't display them in the context menu.
"Share",
"Windows.ModernShare",
"PinToStartScreen",
"CopyAsPath"
"CopyAsPath",
// Hide functionality provided by the Explorer plugin itself
"Copy",
"Delete"
};
#endregion