mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
enhance: highlight selected search commits
This commit is contained in:
parent
c2b17ef9d0
commit
b5000f920f
2 changed files with 5 additions and 7 deletions
|
@ -153,7 +153,11 @@ namespace SourceGit.ViewModels
|
|||
else if (commits.Count == 1)
|
||||
{
|
||||
var commit = commits[0] as Models.Commit;
|
||||
_repo.SearchResultSelectedCommit = commit;
|
||||
|
||||
if (_repo.SearchResultSelectedCommit == null || _repo.SearchResultSelectedCommit.SHA != commit.SHA)
|
||||
{
|
||||
_repo.SearchResultSelectedCommit = _repo.SearchedCommits.Find(x => x.SHA == commit.SHA);
|
||||
}
|
||||
|
||||
AutoSelectedCommit = commit;
|
||||
NavigationId = _navigationId + 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue