From eadb8aa2beb0b85e73bf4a5da4ce0e008515114b Mon Sep 17 00:00:00 2001 From: Brian Lima Date: Tue, 12 Jun 2018 17:59:53 -0300 Subject: [PATCH] Closes #25 --- UWPHook/GamesWindow.xaml.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/UWPHook/GamesWindow.xaml.cs b/UWPHook/GamesWindow.xaml.cs index f3edd7a..72149d6 100644 --- a/UWPHook/GamesWindow.xaml.cs +++ b/UWPHook/GamesWindow.xaml.cs @@ -57,6 +57,8 @@ namespace UWPHook launcher.Show(); await LaunchDelay(); + + launcher.Close(); } else { @@ -97,11 +99,6 @@ namespace UWPHook ScriptManager.RunScript("Set - WinUILanguageOverride " + currentLanguage); } - if (launcher != null) - { - launcher.Close(); - } - //The user has probably finished using the app, so let's close UWPHook to keep the experience clean this.Close(); }