code_style: run dotnet format

This commit is contained in:
leo 2024-07-31 16:26:58 +08:00
parent 2e87f83a38
commit ec6fe25e87
No known key found for this signature in database
10 changed files with 13 additions and 33 deletions

View file

@ -58,7 +58,7 @@ namespace SourceGit.ViewModels
get => _repo.Settings.PreferRebaseInsteadOfMerge;
set => _repo.Settings.PreferRebaseInsteadOfMerge = value;
}
public bool FetchAllBranches
{
get => _repo.Settings.FetchAllBranchesOnPull;

View file

@ -207,8 +207,8 @@ namespace SourceGit.ViewModels
{
if (SetProperty(ref _searchCommitFilter, value) &&
_searchCommitFilterType == 3 &&
!string.IsNullOrEmpty(value) &&
value.Length >= 2 &&
!string.IsNullOrEmpty(value) &&
value.Length >= 2 &&
_revisionFiles.Count > 0)
{
var suggestion = new List<string>();

View file

@ -23,11 +23,8 @@ namespace SourceGit.ViewModels
{
Task.Run(() =>
{
var result = new Commands.IsConflictResolved(repo, change).Result();
Dispatcher.UIThread.Post(() =>
{
IsResolved = result;
});
var result = new Commands.IsConflictResolved(repo, change).ReadToEnd().IsSuccess;
Dispatcher.UIThread.Post(() => IsResolved = result);
});
}