From 492f22fcfa60d58355eed81b8d606185b0548c01 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 26 Aug 2024 21:46:43 +0800 Subject: [PATCH] enhance: add inlines once time and mark text layout dirty (#400) --- src/Views/CommitMessagePresenter.cs | 1 + src/Views/Histories.axaml.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/Views/CommitMessagePresenter.cs b/src/Views/CommitMessagePresenter.cs index 031d6e77..a24289a5 100644 --- a/src/Views/CommitMessagePresenter.cs +++ b/src/Views/CommitMessagePresenter.cs @@ -83,6 +83,7 @@ namespace SourceGit.Views if (matches.Count == 0) { Inlines.Add(new Run(message)); + InvalidateTextLayout(); return; } diff --git a/src/Views/Histories.axaml.cs b/src/Views/Histories.axaml.cs index c2507721..f3431a61 100644 --- a/src/Views/Histories.axaml.cs +++ b/src/Views/Histories.axaml.cs @@ -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; }