From ab92469f11baeea52bccea25674b0e9067d6c47f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AD=B1=E5=82=91?= Date: Sat, 7 Oct 2023 21:24:59 +0800 Subject: [PATCH] Fix include uid bug --- Source/GrasscutterTools/Forms/FormMain.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/GrasscutterTools/Forms/FormMain.cs b/Source/GrasscutterTools/Forms/FormMain.cs index f468d04..95a9265 100644 --- a/Source/GrasscutterTools/Forms/FormMain.cs +++ b/Source/GrasscutterTools/Forms/FormMain.cs @@ -382,7 +382,9 @@ namespace GrasscutterTools.Forms { if (!string.IsNullOrEmpty(args)) command = command + ' ' + args; - SetCommand(command.Trim() + ' ' + Settings.Default.Uid); + SetCommand(Settings.Default.IsIncludeUID + ? $"{command} @{Settings.Default.Uid}" + : command); } ///