mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
Allow unsafe codes in Release build.
This commit is contained in:
@@ -76,25 +76,6 @@ namespace Wox.Plugin.FindFile
|
||||
{
|
||||
List<Result> contextMenus = new List<Result>();
|
||||
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user