From b3ec7375efe1910078288baa3c178693471f0897 Mon Sep 17 00:00:00 2001 From: Jon Date: Sun, 12 Sep 2021 14:44:22 +0100 Subject: [PATCH] removed duplicate call --- UWPHook/GamesWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UWPHook/GamesWindow.xaml.cs b/UWPHook/GamesWindow.xaml.cs index da15a33..c05ecf7 100644 --- a/UWPHook/GamesWindow.xaml.cs +++ b/UWPHook/GamesWindow.xaml.cs @@ -37,7 +37,7 @@ namespace UWPHook var args = Environment.GetCommandLineArgs(); //If null or 1, the app was launched normally - if (args != null && Environment.GetCommandLineArgs().Length > 1) + if (args?.Length > 1) { //When length is 1, the only argument is the path where the app is installed _ = LauncherAsync(args);