code_style: run dotnet format

This commit is contained in:
leo 2024-08-18 23:14:44 +08:00
parent 7fe1df20cc
commit 84b8735d6c
No known key found for this signature in database
11 changed files with 23 additions and 26 deletions

View file

@ -320,7 +320,7 @@ namespace SourceGit.ViewModels
var window = new Views.Blame() { DataContext = new Blame(_repo.FullPath, change.Path, _commit.SHA) };
window.Show();
ev.Handled = true;
};
};
menu.Items.Add(history);
menu.Items.Add(blame);
@ -415,7 +415,7 @@ namespace SourceGit.ViewModels
window.Show();
ev.Handled = true;
};
var copyPath = new MenuItem();
copyPath.Header = App.Text("CopyPath");
copyPath.Icon = App.CreateMenuIcon("Icons.Copy");

View file

@ -279,7 +279,7 @@ namespace SourceGit.ViewModels
{
if (value is null || value < 1)
return;
if (Models.AutoFetchManager.Instance.Interval != value)
{
Models.AutoFetchManager.Instance.Interval = (int)value;

View file

@ -1312,7 +1312,7 @@ namespace SourceGit.ViewModels
var succ = true;
if (autoStage && _unstaged.Count > 0)
succ = new Commands.Add(_repo.FullPath).Exec();
if (succ)
succ = new Commands.Commit(_repo.FullPath, _commitMessage, _useAmend).Exec();