Skip to content

Commit

Permalink
Fix include UID space issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jie65535 committed Nov 12, 2023
1 parent 3eb1a08 commit 5b24425
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Source/GrasscutterTools/Forms/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,11 @@ private void AddCommandToList(string command = "")
private void SetCommand(string command, string args)
{
if (!string.IsNullOrEmpty(args))
command = command + ' ' + args;
SetCommand(Settings.Default.IsIncludeUID
? $"{command} @{Settings.Default.Uid}"
: command);
command = $"{command} {args}";
command = command.Trim();
if (Settings.Default.IsIncludeUID)
command = $"{command} @{Settings.Default.Uid}";
SetCommand(command);
}

/// <summary>
Expand Down

0 comments on commit 5b24425

Please sign in to comment.