mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 10:22:13 +08:00
Merge pull request #383 from gadfly3173/fix/counter-visual
fix: invalidate counter visual (#338)
This commit is contained in:
@@ -63,11 +63,6 @@ namespace SourceGit.Views
|
||||
FontFamilyProperty,
|
||||
ForegroundProperty,
|
||||
CountProperty);
|
||||
|
||||
AffectsRender<CounterPresenter>(
|
||||
ForegroundProperty,
|
||||
BackgroundProperty,
|
||||
CountProperty);
|
||||
}
|
||||
|
||||
public override void Render(DrawingContext context)
|
||||
@@ -98,6 +93,7 @@ namespace SourceGit.Views
|
||||
_label = null;
|
||||
}
|
||||
|
||||
InvalidateVisual();
|
||||
return _label != null ? new Size(_label.Width + 18, 18) : new Size(0, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user