code_style: run dotnet format

This commit is contained in:
leo 2024-08-20 11:53:37 +08:00
parent b0d3d302bb
commit d66053a42d
No known key found for this signature in database
3 changed files with 6 additions and 4 deletions

View file

@ -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);

View file

@ -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);
}

View file

@ -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;
};