Skip to content

Commit 5b24425

Browse files
committed
Fix include UID space issue
1 parent 3eb1a08 commit 5b24425

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Source/GrasscutterTools/Forms/FormMain.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -517,10 +517,11 @@ private void AddCommandToList(string command = "")
517517
private void SetCommand(string command, string args)
518518
{
519519
if (!string.IsNullOrEmpty(args))
520-
command = command + ' ' + args;
521-
SetCommand(Settings.Default.IsIncludeUID
522-
? $"{command} @{Settings.Default.Uid}"
523-
: command);
520+
command = $"{command} {args}";
521+
command = command.Trim();
522+
if (Settings.Default.IsIncludeUID)
523+
command = $"{command} @{Settings.Default.Uid}";
524+
SetCommand(command);
524525
}
525526

526527
/// <summary>

0 commit comments

Comments
 (0)