Files
PowerToys/src/modules/launcher/Wox.Plugin/ContextMenuResult.cs
Henrik Lau Eriksson 460f242967 [PTRun] Fix always show after executing context menu result (#21291)
* fix always show

* add tests

* remove workaround
2022-10-25 22:27:18 +01:00

36 lines
952 B
C#

// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Windows.Input;
namespace Wox.Plugin
{
public class ContextMenuResult
{
public string PluginName { get; set; }
public string Title { get; set; }
public string Glyph { get; set; }
public string FontFamily { get; set; }
public Key AcceleratorKey { get; set; }
public ModifierKeys AcceleratorModifiers { get; set; }
/// <summary>
/// Gets or sets the context menu result action.
/// Return <c>true</c> to hide PowerToys Run after the context menu result has been selected.
/// </summary>
public Func<ActionContext, bool> Action { get; set; }
public override string ToString()
{
return Title;
}
}
}