From aad2e8012b9d342899e625a963d0644777c5333c Mon Sep 17 00:00:00 2001 From: Arjun Balgovind <32061677+arjunbalgovind@users.noreply.github.com> Date: Thu, 25 Jun 2020 14:21:09 -0700 Subject: [PATCH] Add environment exit statement (#4496) --- src/core/Microsoft.PowerToys.Settings.UI.Runner/Program.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/Microsoft.PowerToys.Settings.UI.Runner/Program.cs b/src/core/Microsoft.PowerToys.Settings.UI.Runner/Program.cs index 5701f06c2b..6f9802eb26 100644 --- a/src/core/Microsoft.PowerToys.Settings.UI.Runner/Program.cs +++ b/src/core/Microsoft.PowerToys.Settings.UI.Runner/Program.cs @@ -72,6 +72,9 @@ namespace Microsoft.PowerToys.Settings.UI.Runner MessageBoxButton.OK); app.Shutdown(); } + + // Terminate all threads of the process + Environment.Exit(0); } }