mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
enhance: add Views.CommitRefsPresenter
to draw commit's decorators (refs) directly
This commit is contained in:
parent
3ddaba1c28
commit
e9fa9a42ca
5 changed files with 227 additions and 56 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue