mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
fix: ui not updated after font changed
This commit is contained in:
parent
9aa5787ce9
commit
b18f86dde9
1 changed files with 10 additions and 2 deletions
|
@ -83,13 +83,21 @@ namespace SourceGit.ViewModels
|
||||||
public FontFamily DefaultFont
|
public FontFamily DefaultFont
|
||||||
{
|
{
|
||||||
get => _defaultFont;
|
get => _defaultFont;
|
||||||
set => SetProperty(ref _defaultFont, value);
|
set
|
||||||
|
{
|
||||||
|
if (SetProperty(ref _defaultFont, value) && _onlyUseMonoFontInEditor)
|
||||||
|
OnPropertyChanged(nameof(PrimaryFont));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public FontFamily MonospaceFont
|
public FontFamily MonospaceFont
|
||||||
{
|
{
|
||||||
get => _monospaceFont;
|
get => _monospaceFont;
|
||||||
set => SetProperty(ref _monospaceFont, value);
|
set
|
||||||
|
{
|
||||||
|
if (SetProperty(ref _monospaceFont, value) && !_onlyUseMonoFontInEditor)
|
||||||
|
OnPropertyChanged(nameof(PrimaryFont));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|
Loading…
Reference in a new issue