Skip to content

Commit

Permalink
Maintain compatibility if description not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevoisiak committed Jan 19, 2021
1 parent 2d9be16 commit 19209ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ModAssistant/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private async Task ArgumentHandler(string[] args)
break;

case "--register":
if (args.Length < 3 || string.IsNullOrEmpty(args[1]))
if (args.Length < 2 || string.IsNullOrEmpty(args[1]))
{
Utils.SendNotify(string.Format((string)Current.FindResource("App:InvalidArgument"), "--register"));
}
Expand All @@ -173,7 +173,7 @@ private async Task ArgumentHandler(string[] args)

Update = false;
GUI = false;
args = Shift(args, 3);
args = Shift(args, args.Length);
break;

case "--unregister":
Expand Down

0 comments on commit 19209ce

Please sign in to comment.