From d66053a42d01d87408cc95058a65c48bba928f2d Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 20 Aug 2024 11:53:37 +0800 Subject: [PATCH] code_style: run `dotnet format` --- src/App.axaml.cs | 2 +- src/ViewModels/Preference.cs | 3 ++- src/ViewModels/Repository.cs | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/App.axaml.cs b/src/App.axaml.cs index be553064..0ae1a4c4 100644 --- a/src/App.axaml.cs +++ b/src/App.axaml.cs @@ -247,7 +247,7 @@ namespace SourceGit var primary = onlyUseMonospaceFontInEditor ? defaultFont : monospaceFont; if (!string.IsNullOrEmpty(primary)) resDic.Add("Fonts.Primary", new FontFamily(primary)); - + if (resDic.Count > 0) { app.Resources.MergedDictionaries.Add(resDic); diff --git a/src/ViewModels/Preference.cs b/src/ViewModels/Preference.cs index 8c42e46b..a3f18fd5 100644 --- a/src/ViewModels/Preference.cs +++ b/src/ViewModels/Preference.cs @@ -78,7 +78,8 @@ namespace SourceGit.ViewModels public string DefaultFontFamily { get => _defaultFontFamily; - set { + set + { if (SetProperty(ref _defaultFontFamily, value) && !_isLoading) App.SetFonts(_defaultFontFamily, _monospaceFontFamily, _onlyUseMonoFontInEditor); } diff --git a/src/ViewModels/Repository.cs b/src/ViewModels/Repository.cs index 82a03f64..752b06db 100644 --- a/src/ViewModels/Repository.cs +++ b/src/ViewModels/Repository.cs @@ -1866,8 +1866,9 @@ namespace SourceGit.ViewModels target.Icon = App.CreateMenuIcon(b.IsCurrent ? "Icons.Check" : "Icons.Branch"); target.Click += (_, e) => { - App.OpenDialog(new Views.BranchCompare() { - DataContext = new BranchCompare(_fullpath, branch, dup) + App.OpenDialog(new Views.BranchCompare() + { + DataContext = new BranchCompare(_fullpath, branch, dup) }); e.Handled = true; };