mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-12 04:33:10 +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
@ -38,8 +38,11 @@ namespace PowerLauncher
|
|||||||
public static void Main(string[] args)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
if (SingleInstance<App>.InitializeAsFirstInstance(Unique))
|
if (SingleInstance<App>.InitializeAsFirstInstance(Unique))
|
||||||
|
{
|
||||||
|
if (args.Length > 0)
|
||||||
{
|
{
|
||||||
int.TryParse(args[0], out _powerToysPid);
|
int.TryParse(args[0], out _powerToysPid);
|
||||||
|
}
|
||||||
|
|
||||||
using (var application = new App())
|
using (var application = new App())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user