From adebabd82401938a42a40371b9a0765dc7132ea4 Mon Sep 17 00:00:00 2001 From: Yusyuriv Date: Fri, 7 Jun 2024 13:33:06 +0600 Subject: [PATCH] Explorer plugin native context menu: hide duplicate functionality in the native context menu --- .../Helper/ShellContextMenuDisplayHelper.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Explorer/Helper/ShellContextMenuDisplayHelper.cs b/Plugins/Flow.Launcher.Plugin.Explorer/Helper/ShellContextMenuDisplayHelper.cs index eedc4498a..6edc3bd3e 100644 --- a/Plugins/Flow.Launcher.Plugin.Explorer/Helper/ShellContextMenuDisplayHelper.cs +++ b/Plugins/Flow.Launcher.Plugin.Explorer/Helper/ShellContextMenuDisplayHelper.cs @@ -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