mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 02:12:25 +08:00
enhance: add inlines once time and mark text layout dirty (#400)
This commit is contained in:
@@ -83,6 +83,7 @@ namespace SourceGit.Views
|
||||
if (matches.Count == 0)
|
||||
{
|
||||
Inlines.Add(new Run(message));
|
||||
InvalidateTextLayout();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -196,6 +196,7 @@ namespace SourceGit.Views
|
||||
if (rules == null || rules.Count == 0)
|
||||
{
|
||||
Inlines.Add(new Run(subject));
|
||||
InvalidateTextLayout();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -206,6 +207,7 @@ namespace SourceGit.Views
|
||||
if (matches.Count == 0)
|
||||
{
|
||||
Inlines.Add(new Run(subject));
|
||||
InvalidateTextLayout();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user