Allowing launcher to be run as startup project with no command line args (#4267)

This commit is contained in:
ryanbodrug-microsoft
2020-06-16 10:53:27 -07:00
committed by GitHub
parent 1a3500cad3
commit 7f25e3ba97

View File

@@ -39,7 +39,10 @@ namespace PowerLauncher
{
if (SingleInstance<App>.InitializeAsFirstInstance(Unique))
{
int.TryParse(args[0], out _powerToysPid);
if (args.Length > 0)
{
int.TryParse(args[0], out _powerToysPid);
}
using (var application = new App())
{