From a4383412ed7bf49a3117181bc664c07abf2331aa Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 7 Apr 2021 11:34:54 +0100 Subject: [PATCH] auto refresh games list on load --- UWPHook/GamesWindow.xaml.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/UWPHook/GamesWindow.xaml.cs b/UWPHook/GamesWindow.xaml.cs index 8ea2751..1a1df85 100644 --- a/UWPHook/GamesWindow.xaml.cs +++ b/UWPHook/GamesWindow.xaml.cs @@ -35,13 +35,15 @@ namespace UWPHook var args = Environment.GetCommandLineArgs(); //If null or 1, the app was launched normally - if (args != null) + if (args != null && Environment.GetCommandLineArgs().Length > 1) { //When length is 1, the only argument is the path where the app is installed - if (Environment.GetCommandLineArgs().Length > 1) - { - _ = LauncherAsync(args); - } + _ = LauncherAsync(args); + } + else + { + //auto refresh on load + LoadButton_Click(null, null); } }