mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Merge pull request #43 from cxfksword/master
fix Everything plugin closure bug
This commit is contained in:
@@ -19,15 +19,16 @@ namespace Wox.Plugin.Everything
|
|||||||
IEnumerable<string> enumerable = api.Search(query.ActionParameters[0], 0, 100);
|
IEnumerable<string> enumerable = api.Search(query.ActionParameters[0], 0, 100);
|
||||||
foreach (string s in enumerable)
|
foreach (string s in enumerable)
|
||||||
{
|
{
|
||||||
|
var path = s;
|
||||||
Result r = new Result();
|
Result r = new Result();
|
||||||
r.Title = Path.GetFileName(s);
|
r.Title = Path.GetFileName(path);
|
||||||
r.SubTitle = s;
|
r.SubTitle = path;
|
||||||
r.Action = (c) =>
|
r.Action = (c) =>
|
||||||
{
|
{
|
||||||
context.HideApp();
|
context.HideApp();
|
||||||
System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo();
|
System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo();
|
||||||
info.UseShellExecute = true;
|
info.UseShellExecute = true;
|
||||||
info.FileName = s;
|
info.FileName = path;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
System.Diagnostics.Process.Start(info);
|
System.Diagnostics.Process.Start(info);
|
||||||
|
|||||||
Reference in New Issue
Block a user