Fix include UID space issue

This commit is contained in:
2023-11-12 13:54:49 +08:00
parent 3eb1a08697
commit 5b2442591f

View File

@ -517,10 +517,11 @@ namespace GrasscutterTools.Forms
private void SetCommand(string command, string args) private void SetCommand(string command, string args)
{ {
if (!string.IsNullOrEmpty(args)) if (!string.IsNullOrEmpty(args))
command = command + ' ' + args; command = $"{command} {args}";
SetCommand(Settings.Default.IsIncludeUID command = command.Trim();
? $"{command} @{Settings.Default.Uid}" if (Settings.Default.IsIncludeUID)
: command); command = $"{command} @{Settings.Default.Uid}";
SetCommand(command);
} }
/// <summary> /// <summary>