PowerToys/src/modules/launcher/Wox.Plugin/ContextMenuResult.cs
Divyansh Srivastava 638cd1dd48
[Run] Open in console functionality (#4739)
* Added open in console for indexer

* Added open in console fpr indexer and folder plugin

* Added open in console to program plugin

* Added string localization for program plugin

* Added test for win32 program

* Added test for win32 programs

* Added test for indexer plugin

* Localization for context menu title

* Added tests for folder plugin

* Added tests for indexer plugin

* Code cleanup

* Improved logging and nit fixes

* Updated tooltip for open in console

* Updates tests

* Removed subtitle property from contextmenuresult class

* Improved logging for context menu loaders
2020-07-08 09:56:26 -07:00

31 lines
668 B
C#

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>
/// return true to hide wox after select result
/// </summary>
public Func<ActionContext, bool> Action { get; set; }
public override string ToString()
{
return Title;
}
}
}