Skip to content

Commit

Permalink
fix Aurora not launching with run parameters, like at windows startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Aytackydln committed Feb 23, 2024
1 parent 6a25d98 commit 1a2b7a7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Project-Aurora/Project-Aurora/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ private void UseArgs(StartupEventArgs e)
{
case "-debug":
Global.isDebug = true;
Global.logger.Information("Program started in debug mode");
break;
case "-restart":
var pid = int.Parse(e.Args[++i]);
Expand All @@ -114,16 +113,10 @@ private void UseArgs(StartupEventArgs e)
case "-minimized":
case "-silent":
IsSilent = true;
Global.logger.Information("Program started with '-silent' parameter");
break;
case "-ignore_update":
new UpdateModule().IgnoreUpdate = true;
Global.logger.Information("Program started with '-ignore_update' parameter");
break;
case "-delay":
if (i + 1 >= e.Args.Length || !int.TryParse(e.Args[i++], out var delayTime))
delayTime = 5000;
Global.logger.Information("Program started with '-delay' parameter with delay of {DelayTime} ms", delayTime);
Thread.Sleep(delayTime);
break;
}
Expand Down

0 comments on commit 1a2b7a7

Please sign in to comment.