fix godot warning
This commit is contained in:
@@ -30,7 +30,7 @@ public partial class BuildPanel : Control
|
||||
|
||||
private async Task OnBuildStarted(BuildStartedFlags _)
|
||||
{
|
||||
_terminal.ClearTerminal();
|
||||
await this.InvokeAsync(() => _terminal.ClearTerminal());
|
||||
_buildOutputChannelReader ??= _buildService.BuildTextWriter.ConsoleChannel.Reader;
|
||||
}
|
||||
}
|
||||
@@ -37,6 +37,7 @@ public partial class SharpIdeTerminal : Control
|
||||
_previousArrayEndedInCr = text.Length > 0 && text[^1] == (byte)'\r';
|
||||
}
|
||||
|
||||
[RequiresGodotUiThread]
|
||||
public void ClearTerminal()
|
||||
{
|
||||
// .Clear removes all text except for the bottom row, so lets make sure we have a blank line, and cursor at start
|
||||
|
||||
Reference in New Issue
Block a user