fix: Combine branch and commit refresh into a single thread

This commit is contained in:
Gadfly 2025-05-22 23:45:18 +08:00
parent 1ee7d1184e
commit 97222942d7
No known key found for this signature in database

View file

@ -120,8 +120,11 @@ namespace SourceGit.Models
Task.Run(_repo.RefreshSubmodules);
}
Task.Run(_repo.RefreshBranches);
Task.Run(_repo.RefreshCommits);
Task.Run(() =>
{
_repo.RefreshBranches();
_repo.RefreshCommits();
});
Task.Run(_repo.RefreshWorkingCopyChanges);
Task.Run(_repo.RefreshWorktrees);
}