enhance: add Views.CommitRefsPresenter to draw commit's decorators (refs) directly

This commit is contained in:
leo 2024-07-25 15:31:16 +08:00
parent 3ddaba1c28
commit e9fa9a42ca
No known key found for this signature in database
5 changed files with 227 additions and 56 deletions

View file

@ -371,6 +371,9 @@ namespace SourceGit.Views
{
NavigationIdProperty.Changed.AddClassHandler<Histories>((h, _) =>
{
if (h.DataContext == null)
return;
// Force scroll selected item (current head) into view. see issue #58
var datagrid = h.CommitDataGrid;
if (datagrid != null && datagrid.SelectedItems.Count == 1)