Skip to content

Commit 8d3fc5a

Browse files
Randall FlaggRandall Flagg
Randall Flagg
authored and
Randall Flagg
committed
Merge branch 'status_line_update' of github.com:RandallFlagg/LogExpert into branches/truncate-file-menu-option
2 parents 1a5fe76 + 68240b9 commit 8d3fc5a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/LogExpert/Controls/LogTabWindow/LogTabWindowPrivate.cs

+8-1
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,14 @@ private void StatusLineEventWorker(StatusLineEventArgs e)
677677
labelSize.Size = TextRenderer.MeasureText(labelSize.Text, labelSize.Font);
678678
labelCurrentLine.Text = $"Line: {e.CurrentLineNum}";
679679
labelCurrentLine.Size = TextRenderer.MeasureText(labelCurrentLine.Text, labelCurrentLine.Font);
680-
statusStrip.Refresh();
680+
if (statusStrip.InvokeRequired)
681+
{
682+
statusStrip.BeginInvoke(new MethodInvoker(delegate { statusStrip.Refresh(); }));
683+
}
684+
else
685+
{
686+
statusStrip.Refresh();
687+
}
681688
}
682689
}
683690

0 commit comments

Comments
 (0)