mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-06 03:07:54 +08:00
Add threading task run for StartProcess
Context menu hides immediately after user selection
This commit is contained in:
parent
9d031c1600
commit
cb78e10a76
@ -121,8 +121,10 @@ namespace Wox.Plugin.Program.Programs
|
|||||||
WorkingDirectory = ParentDirectory,
|
WorkingDirectory = ParentDirectory,
|
||||||
Verb = "runas"
|
Verb = "runas"
|
||||||
};
|
};
|
||||||
var hide = Main.StartProcess(Process.Start, info);
|
|
||||||
return hide;
|
Task.Run(() => Main.StartProcess(Process.Start, info));
|
||||||
|
|
||||||
|
return true;
|
||||||
},
|
},
|
||||||
IcoPath = "Images/cmd.png"
|
IcoPath = "Images/cmd.png"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user