From a7dfb9cb97bfce1fb49c500956777e4a537573be Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Fri, 24 Oct 2014 16:48:14 +0800 Subject: [PATCH] Allow unsafe codes in Release build. --- Plugins/Wox.Plugin.FindFile/Main.cs | 19 ------------------- Wox.Infrastructure/Wox.Infrastructure.csproj | 1 + Wox.Plugin.SystemPlugins/Program/Programs.cs | 13 +------------ 3 files changed, 2 insertions(+), 31 deletions(-) diff --git a/Plugins/Wox.Plugin.FindFile/Main.cs b/Plugins/Wox.Plugin.FindFile/Main.cs index 6d35e1ac45..5f0518235d 100644 --- a/Plugins/Wox.Plugin.FindFile/Main.cs +++ b/Plugins/Wox.Plugin.FindFile/Main.cs @@ -76,25 +76,6 @@ namespace Wox.Plugin.FindFile { List contextMenus = new List(); - contextMenus.Add(new Result() - { - Title = "Open", - Action = _ => - { - try - { - Process.Start(record.FullPath); - } - catch - { - context.API.ShowMsg("Can't open " + record.FullPath, string.Empty, string.Empty); - return false; - } - return true; - }, - IcoPath = "Images/open.png" - }); - if (!record.IsFolder) { contextMenus.Add(new Result() diff --git a/Wox.Infrastructure/Wox.Infrastructure.csproj b/Wox.Infrastructure/Wox.Infrastructure.csproj index ae41dfffaa..fb42df5417 100644 --- a/Wox.Infrastructure/Wox.Infrastructure.csproj +++ b/Wox.Infrastructure/Wox.Infrastructure.csproj @@ -31,6 +31,7 @@ TRACE prompt 4 + true diff --git a/Wox.Plugin.SystemPlugins/Program/Programs.cs b/Wox.Plugin.SystemPlugins/Program/Programs.cs index 75432d8b5d..649ce9acde 100644 --- a/Wox.Plugin.SystemPlugins/Program/Programs.cs +++ b/Wox.Plugin.SystemPlugins/Program/Programs.cs @@ -47,18 +47,7 @@ namespace Wox.Plugin.SystemPlugins.Program { new Result() { - Title = "Open", - Action = _ => - { - context.API.HideApp(); - context.API.ShellRun(c.ExecutePath); - return true; - }, - IcoPath = "Images/open.png" - }, - new Result() - { - Title = "Open With Administrator", + Title = "Run As Administrator", Action = _ => { context.API.HideApp();