feature: add CurrentBranch property to ViewModels.Repository

This commit is contained in:
leo 2024-07-24 15:36:26 +08:00
parent f8caeceade
commit 6f317039ab
No known key found for this signature in database
4 changed files with 63 additions and 64 deletions

View file

@ -147,7 +147,7 @@ namespace SourceGit.ViewModels
if (datagrid.SelectedItems.Count != 1)
return null;
var current = _repo.Branches.Find(x => x.IsCurrent);
var current = _repo.CurrentBranch;
if (current == null)
return null;