From 1993d3d2955f196cbb021ba8efe70221ce34118c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AD=B1=E5=82=91?= Date: Sun, 24 Sep 2023 00:27:55 +0800 Subject: [PATCH] Fix include uid symbol issue --- Source/GrasscutterTools/Forms/FormMain.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/GrasscutterTools/Forms/FormMain.cs b/Source/GrasscutterTools/Forms/FormMain.cs index 71c8f48..a4262a6 100644 --- a/Source/GrasscutterTools/Forms/FormMain.cs +++ b/Source/GrasscutterTools/Forms/FormMain.cs @@ -380,9 +380,9 @@ namespace GrasscutterTools.Forms /// 参数 private void SetCommand(string command, string args) { - SetCommand(Settings.Default.IsIncludeUID - ? $"{command} {args.Trim()} @{Settings.Default.Uid}" - : $"{command} {args.Trim()}"); + if (!string.IsNullOrEmpty(args)) + command = command + ' ' + args; + SetCommand(command.Trim() + ' ' + Settings.Default.Uid); } ///