diff --git a/src/Models/CommitGraph.cs b/src/Models/CommitGraph.cs index 1297a675..0cfbb18a 100644 --- a/src/Models/CommitGraph.cs +++ b/src/Models/CommitGraph.cs @@ -275,7 +275,7 @@ namespace SourceGit.Models unsolved.Remove(l); } - // Margins & merge state (used by datagrid). + // Margins & merge state (used by Views.Histories). commit.IsMerged = isMerged; commit.Margin = new Thickness(Math.Max(offsetX + HALF_WIDTH, oldCount * UNIT_WIDTH + H_MARGIN) + H_MARGIN, 0, 0, 0); diff --git a/src/ViewModels/Repository.cs b/src/ViewModels/Repository.cs index 94ded994..756d324e 100644 --- a/src/ViewModels/Repository.cs +++ b/src/ViewModels/Repository.cs @@ -309,7 +309,11 @@ namespace SourceGit.ViewModels public Models.Commit SearchResultSelectedCommit { get => _searchResultSelectedCommit; - set => SetProperty(ref _searchResultSelectedCommit, value); + set + { + if (SetProperty(ref _searchResultSelectedCommit, value) && value != null) + NavigateToCommit(value.SHA); + } } public void Open() diff --git a/src/Views/AssumeUnchangedManager.axaml b/src/Views/AssumeUnchangedManager.axaml index 74615867..09f64018 100644 --- a/src/Views/AssumeUnchangedManager.axaml +++ b/src/Views/AssumeUnchangedManager.axaml @@ -53,44 +53,42 @@ - - - - - - - - - - - - + + + + - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - + - + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Views/InteractiveRebase.axaml.cs b/src/Views/InteractiveRebase.axaml.cs index 0660f7c9..c8d3dd33 100644 --- a/src/Views/InteractiveRebase.axaml.cs +++ b/src/Views/InteractiveRebase.axaml.cs @@ -88,9 +88,9 @@ namespace SourceGit.Views } } - private void OnDataGridKeyDown(object sender, KeyEventArgs e) + private void OnItemsListBoxKeyDown(object sender, KeyEventArgs e) { - var item = (sender as DataGrid)?.SelectedItem as ViewModels.InteractiveRebaseItem; + var item = (sender as ListBox)?.SelectedItem as ViewModels.InteractiveRebaseItem; if (item == null) return; diff --git a/src/Views/LFSLocks.axaml b/src/Views/LFSLocks.axaml index 5d51e25e..adc3ecf7 100644 --- a/src/Views/LFSLocks.axaml +++ b/src/Views/LFSLocks.axaml @@ -2,6 +2,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:m="using:SourceGit.Models" xmlns:vm="using:SourceGit.ViewModels" xmlns:v="using:SourceGit.Views" mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" @@ -51,62 +52,48 @@ - - - - - - - - - - - - + + + + - - - - - - - + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - + + + + + - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + @@ -110,38 +113,36 @@ - - - - - - - - - + + + + - - - - - - - - - + + + + + + + + + + + + + + + - - - - - + + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + + +