mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 09:28:03 +08:00
Allowing launcher to be run as startup project with no command line args (#4267)
This commit is contained in:
parent
1a3500cad3
commit
7f25e3ba97
@ -39,7 +39,10 @@ namespace PowerLauncher
|
|||||||
{
|
{
|
||||||
if (SingleInstance<App>.InitializeAsFirstInstance(Unique))
|
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())
|
using (var application = new App())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user