enhance: add inlines once time and mark text layout dirty (#400)

This commit is contained in:
leo 2024-08-26 21:46:43 +08:00
parent 27a68f0d4d
commit 492f22fcfa
No known key found for this signature in database
2 changed files with 3 additions and 0 deletions

View file

@ -83,6 +83,7 @@ namespace SourceGit.Views
if (matches.Count == 0) if (matches.Count == 0)
{ {
Inlines.Add(new Run(message)); Inlines.Add(new Run(message));
InvalidateTextLayout();
return; return;
} }

View file

@ -196,6 +196,7 @@ namespace SourceGit.Views
if (rules == null || rules.Count == 0) if (rules == null || rules.Count == 0)
{ {
Inlines.Add(new Run(subject)); Inlines.Add(new Run(subject));
InvalidateTextLayout();
return; return;
} }
@ -206,6 +207,7 @@ namespace SourceGit.Views
if (matches.Count == 0) if (matches.Count == 0)
{ {
Inlines.Add(new Run(subject)); Inlines.Add(new Run(subject));
InvalidateTextLayout();
return; return;
} }