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)
{
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>