From 9c0b9608dc81378e23304d644242dc8402fb550b Mon Sep 17 00:00:00 2001 From: Gadfly Date: Wed, 21 Aug 2024 10:18:09 +0800 Subject: [PATCH 1/2] fix: invalidate counter visual (#338) --- src/Views/Repository.axaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Views/Repository.axaml.cs b/src/Views/Repository.axaml.cs index 6c3c80ea..96d1f5a5 100644 --- a/src/Views/Repository.axaml.cs +++ b/src/Views/Repository.axaml.cs @@ -98,6 +98,7 @@ namespace SourceGit.Views _label = null; } + InvalidateVisual(); return _label != null ? new Size(_label.Width + 18, 18) : new Size(0, 0); } From 3b9e781b0a70f467c040ace9cc87fd1968d825f3 Mon Sep 17 00:00:00 2001 From: Gadfly Date: Wed, 21 Aug 2024 11:23:27 +0800 Subject: [PATCH 2/2] fix: remove unused AffectsRender --- src/Views/Repository.axaml.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Views/Repository.axaml.cs b/src/Views/Repository.axaml.cs index 96d1f5a5..eb3158cd 100644 --- a/src/Views/Repository.axaml.cs +++ b/src/Views/Repository.axaml.cs @@ -63,11 +63,6 @@ namespace SourceGit.Views FontFamilyProperty, ForegroundProperty, CountProperty); - - AffectsRender( - ForegroundProperty, - BackgroundProperty, - CountProperty); } public override void Render(DrawingContext context)