diff --git a/Source/GrasscutterTools/Forms/FormMain.cs b/Source/GrasscutterTools/Forms/FormMain.cs index c1d171d..8d8d480 100644 --- a/Source/GrasscutterTools/Forms/FormMain.cs +++ b/Source/GrasscutterTools/Forms/FormMain.cs @@ -207,7 +207,9 @@ namespace GrasscutterTools.Forms { Logger.I(TAG, $"SetCommand(\"{command}\")"); var oldCommand = CmbCommand.Text; - CmbCommand.Text = (ModifierKeys == Keys.Shift) ? $"{oldCommand} | {command}" : command; + CmbCommand.Text = (ModifierKeys == Keys.Shift) ? + (string.IsNullOrEmpty(oldCommand) ? command : $"{oldCommand} | {command}") + : command; if (ChkAutoCopy.Checked) CopyCommand(); AddCommandToList(command);