Allow searches in context menu

This commit is contained in:
qianlifeng
2015-02-07 16:53:33 +08:00
parent 998eecb94d
commit 82d30c6e74
24 changed files with 2103 additions and 221 deletions

View File

@@ -48,7 +48,7 @@ namespace Wox.Plugin.Program
{
new Result()
{
Title = "Run As Administrator",
Title = context.API.GetTranslation("wox_plugin_program_run_as_administrator"),
Action = _ =>
{
context.API.HideApp();
@@ -59,7 +59,7 @@ namespace Wox.Plugin.Program
},
new Result()
{
Title = "Open Containing Folder",
Title = context.API.GetTranslation("wox_plugin_program_open_containing_folder"),
Action = _ =>
{
context.API.HideApp();
@@ -85,8 +85,8 @@ namespace Wox.Plugin.Program
static string ResolveShortcut(string filePath)
{
// IWshRuntimeLibrary is in the COM library "Windows Script Host Object Model"
IWshRuntimeLibrary.WshShell shell = new IWshRuntimeLibrary.WshShell();
IWshRuntimeLibrary.IWshShortcut shortcut = (IWshRuntimeLibrary.IWshShortcut)shell.CreateShortcut(filePath);
WshShell shell = new WshShell();
IWshShortcut shortcut = (IWshShortcut)shell.CreateShortcut(filePath);
return shortcut.TargetPath;
}