mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-02 16:57:56 +08:00
638cd1dd48
* 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
31 lines
668 B
C#
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;
|
|
}
|
|
}
|
|
} |