diff --git a/src/ViewModels/Preference.cs b/src/ViewModels/Preference.cs index 8cc05696..4142bf39 100644 --- a/src/ViewModels/Preference.cs +++ b/src/ViewModels/Preference.cs @@ -83,13 +83,21 @@ namespace SourceGit.ViewModels public FontFamily DefaultFont { get => _defaultFont; - set => SetProperty(ref _defaultFont, value); + set + { + if (SetProperty(ref _defaultFont, value) && _onlyUseMonoFontInEditor) + OnPropertyChanged(nameof(PrimaryFont)); + } } public FontFamily MonospaceFont { get => _monospaceFont; - set => SetProperty(ref _monospaceFont, value); + set + { + if (SetProperty(ref _monospaceFont, value) && !_onlyUseMonoFontInEditor) + OnPropertyChanged(nameof(PrimaryFont)); + } } [JsonIgnore]