Fixed exceptions in dispose not allowing PT Run to terminate (#5615)
This commit is contained in:
parent
76ab389e88
commit
136562b766
|
@ -59,9 +59,16 @@ namespace PowerLauncher
|
|||
private void OnStartup(object sender, StartupEventArgs e)
|
||||
{
|
||||
RunnerHelper.WaitForPowerToysRunner(_powerToysPid, () =>
|
||||
{
|
||||
try
|
||||
{
|
||||
Dispose();
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Environment.Exit(0);
|
||||
}
|
||||
});
|
||||
|
||||
var bootTime = new System.Diagnostics.Stopwatch();
|
||||
|
|
Loading…
Reference in a new issue