File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
366366 {
367367 Options . IndentationSize = TabWidth ;
368368 }
369- else if ( change . Property . Name == " ActualThemeVariant" && change . NewValue != null )
369+ else if ( change . Property . Name == nameof ( ActualThemeVariant ) && change . NewValue != null )
370370 {
371371 Models . TextMateHelper . SetThemeByApp ( _textMate ) ;
372372 }
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
8484
8585 if ( change . Property == IsUnstagedChangeProperty ||
8686 change . Property == ChangeProperty ||
87- ( change . Property . Name == " ActualThemeVariant" && change . NewValue != null ) )
87+ ( change . Property . Name == nameof ( ActualThemeVariant ) && change . NewValue != null ) )
8888 InvalidateVisual ( ) ;
8989 }
9090 }
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
4242 {
4343 base . OnPropertyChanged ( change ) ;
4444
45- if ( change . Property . Name == " ActualThemeVariant" )
45+ if ( change . Property . Name == nameof ( ActualThemeVariant ) && change . NewValue != null )
4646 {
4747 _bgBrush = null ;
4848 InvalidateVisual ( ) ;
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
157157 {
158158 base . OnPropertyChanged ( change ) ;
159159
160- if ( change . Property . Name == nameof ( ActualThemeVariant ) )
160+ if ( change . Property . Name == nameof ( ActualThemeVariant ) && change . NewValue != null )
161161 InvalidateVisual ( ) ;
162162 }
163163
Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
568568 {
569569 Models . TextMateHelper . SetGrammarByFileName ( _textMate , FileName ) ;
570570 }
571- else if ( change . Property . Name == " ActualThemeVariant" && change . NewValue != null )
571+ else if ( change . Property . Name == nameof ( ActualThemeVariant ) && change . NewValue != null )
572572 {
573573 Models . TextMateHelper . SetThemeByApp ( _textMate ) ;
574574 }
You can’t perform that action at this time.
0 commit comments