Add threading task run for StartProcess

Context menu hides immediately after user selection
This commit is contained in:
Jeremy Wu 2019-12-16 21:03:44 +11:00
parent 9d031c1600
commit cb78e10a76

View File

@ -121,8 +121,10 @@ namespace Wox.Plugin.Program.Programs
WorkingDirectory = ParentDirectory,
Verb = "runas"
};
var hide = Main.StartProcess(Process.Start, info);
return hide;
Task.Run(() => Main.StartProcess(Process.Start, info));
return true;
},
IcoPath = "Images/cmd.png"
},