Fix TerminalLog.Clear regression

This commit is contained in:
jlewin 2019-04-03 10:59:12 -07:00
parent 4238757457
commit 3aa386de49
2 changed files with 4 additions and 2 deletions

View file

@ -139,7 +139,9 @@ namespace MatterHackers.MatterControl
PrinterLines.Clear();
}
this.WriteLine("");
// HACK: Writing null is has the effect of clearing the terminal log as the widgets clear thier visibleLines list on null.
// Ideally we'd have something more explicit in place that handles the behavior as the effect is less than obvious
this.WriteLine(null);
}
public void Dispose()

View file

@ -137,7 +137,7 @@ namespace MatterHackers.MatterControl
public void RebuildFilteredList()
{
lock (locker)
{
{
visibleLines = new List<string>();
var allSourceLinesTemp = allSourceLines.ToArray();
foreach (var lineData in allSourceLinesTemp)