mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-06-07 22:59:14 +08:00
Fix tips
This commit is contained in:
parent
b2b656b6cb
commit
01016b1fa1
@ -378,7 +378,7 @@ namespace GrasscutterTools.Forms
|
|||||||
if (cmd.IndexOf('|') == -1)
|
if (cmd.IndexOf('|') == -1)
|
||||||
await RunCommands(FormatCommand(cmd));
|
await RunCommands(FormatCommand(cmd));
|
||||||
else
|
else
|
||||||
await RunCommands(cmd.Split('|').Select(it => FormatCommand(it)).ToArray());
|
await RunCommands(cmd.Split('|').Select(FormatCommand).ToArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -528,6 +528,11 @@ namespace GrasscutterTools.Forms
|
|||||||
/// <param name="control">控件</param>
|
/// <param name="control">控件</param>
|
||||||
private void ShowTip(string message, Control control)
|
private void ShowTip(string message, Control control)
|
||||||
{
|
{
|
||||||
|
if (InvokeRequired)
|
||||||
|
{
|
||||||
|
BeginInvoke(new Action(() => ShowTip(message, control)));
|
||||||
|
return;
|
||||||
|
}
|
||||||
TTip.Show(message, control, 0, control.Size.Height, 3000);
|
TTip.Show(message, control, 0, control.Size.Height, 3000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user