Merge pull request #874 from Flow-Launcher/WindowsSettingContextRemove

Remove contextmenu of windowsseting plugin
This commit is contained in:
Jeremy Wu 2021-12-07 19:43:41 +11:00 committed by GitHub
commit 0d64283b15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,21 +21,7 @@ namespace Flow.Launcher.Plugin.WindowsSettings.Helper
/// <returns>A list with context menu entries</returns>
internal static List<Result> GetContextMenu(in Result result, in string assemblyName)
{
if (result?.ContextData is not WindowsSetting entry)
{
return new List<Result>(0);
}
var list = new List<Result>(1)
{
new()
{
Action = _ => TryToCopyToClipBoard(entry.Command),
Title = $"{Resources.CopyCommand} (Ctrl+C)",
},
};
return list;
return new List<Result>(0);
}
/// <summary>