File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,6 @@ public Models.Change Change
42
42
set => SetValue ( ChangeProperty , value ) ;
43
43
}
44
44
45
- public ChangeStatusIcon ( )
46
- {
47
- ActualThemeVariantChanged += ( _ , _ ) => InvalidateVisual ( ) ;
48
- }
49
-
50
45
public override void Render ( DrawingContext context )
51
46
{
52
47
if ( Change == null || Bounds . Width <= 0 )
@@ -87,7 +82,9 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
87
82
{
88
83
base . OnPropertyChanged ( change ) ;
89
84
90
- if ( change . Property == IsUnstagedChangeProperty || change . Property == ChangeProperty )
85
+ if ( change . Property == IsUnstagedChangeProperty ||
86
+ change . Property == ChangeProperty ||
87
+ ( change . Property . Name == "ActualThemeVariant" && change . NewValue != null ) )
91
88
InvalidateVisual ( ) ;
92
89
}
93
90
}
You can’t perform that action at this time.
0 commit comments