File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ public string DefaultFontFamily
65
65
get => _defaultFontFamily ;
66
66
set
67
67
{
68
- if ( SetProperty ( ref _defaultFontFamily , value ) && ! _isLoading )
68
+ var trimmed = value . Trim ( ) ;
69
+ if ( SetProperty ( ref _defaultFontFamily , trimmed ) && ! _isLoading )
69
70
App . SetFonts ( _defaultFontFamily , _monospaceFontFamily , _onlyUseMonoFontInEditor ) ;
70
71
}
71
72
}
@@ -75,7 +76,8 @@ public string MonospaceFontFamily
75
76
get => _monospaceFontFamily ;
76
77
set
77
78
{
78
- if ( SetProperty ( ref _monospaceFontFamily , value ) && ! _isLoading )
79
+ var trimmed = value . Trim ( ) ;
80
+ if ( SetProperty ( ref _monospaceFontFamily , trimmed ) && ! _isLoading )
79
81
App . SetFonts ( _defaultFontFamily , _monospaceFontFamily , _onlyUseMonoFontInEditor ) ;
80
82
}
81
83
}
You can’t perform that action at this time.
0 commit comments