Skip to content

Commit

Permalink
Don't log blank lines to the progress tab
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Dec 7, 2023
1 parent 194af7b commit d465693
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GUI/Main/MainDialogs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ public void AddStatusMessage(string text, params object[] args)
Util.Invoke(statusStrip1, () =>
StatusLabel.ToolTipText = StatusLabel.Text = msg.Replace("\r\n", " ").Replace("\n", " ")
);
Wait.AddLogMessage(msg);
if (!string.IsNullOrEmpty(msg))
{
Wait.AddLogMessage(msg);
}
}

[ForbidGUICalls]
Expand Down

0 comments on commit d465693

Please sign in to comment.