mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
code_style: run dotnet format
This commit is contained in:
parent
b0d3d302bb
commit
d66053a42d
3 changed files with 6 additions and 4 deletions
|
@ -247,7 +247,7 @@ namespace SourceGit
|
||||||
var primary = onlyUseMonospaceFontInEditor ? defaultFont : monospaceFont;
|
var primary = onlyUseMonospaceFontInEditor ? defaultFont : monospaceFont;
|
||||||
if (!string.IsNullOrEmpty(primary))
|
if (!string.IsNullOrEmpty(primary))
|
||||||
resDic.Add("Fonts.Primary", new FontFamily(primary));
|
resDic.Add("Fonts.Primary", new FontFamily(primary));
|
||||||
|
|
||||||
if (resDic.Count > 0)
|
if (resDic.Count > 0)
|
||||||
{
|
{
|
||||||
app.Resources.MergedDictionaries.Add(resDic);
|
app.Resources.MergedDictionaries.Add(resDic);
|
||||||
|
|
|
@ -78,7 +78,8 @@ namespace SourceGit.ViewModels
|
||||||
public string DefaultFontFamily
|
public string DefaultFontFamily
|
||||||
{
|
{
|
||||||
get => _defaultFontFamily;
|
get => _defaultFontFamily;
|
||||||
set {
|
set
|
||||||
|
{
|
||||||
if (SetProperty(ref _defaultFontFamily, value) && !_isLoading)
|
if (SetProperty(ref _defaultFontFamily, value) && !_isLoading)
|
||||||
App.SetFonts(_defaultFontFamily, _monospaceFontFamily, _onlyUseMonoFontInEditor);
|
App.SetFonts(_defaultFontFamily, _monospaceFontFamily, _onlyUseMonoFontInEditor);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1866,8 +1866,9 @@ namespace SourceGit.ViewModels
|
||||||
target.Icon = App.CreateMenuIcon(b.IsCurrent ? "Icons.Check" : "Icons.Branch");
|
target.Icon = App.CreateMenuIcon(b.IsCurrent ? "Icons.Check" : "Icons.Branch");
|
||||||
target.Click += (_, e) =>
|
target.Click += (_, e) =>
|
||||||
{
|
{
|
||||||
App.OpenDialog(new Views.BranchCompare() {
|
App.OpenDialog(new Views.BranchCompare()
|
||||||
DataContext = new BranchCompare(_fullpath, branch, dup)
|
{
|
||||||
|
DataContext = new BranchCompare(_fullpath, branch, dup)
|
||||||
});
|
});
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue