mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
revert: disable double-click folding/unfolding because it will cause IndexOutOfRange exception
This commit is contained in:
parent
a382a3e564
commit
ea1bfad84d
6 changed files with 2 additions and 55 deletions
|
@ -1,6 +1,5 @@
|
|||
using Avalonia.Controls;
|
||||
using Avalonia.Input;
|
||||
using Avalonia.Interactivity;
|
||||
|
||||
namespace SourceGit.Views
|
||||
{
|
||||
|
@ -22,18 +21,6 @@ namespace SourceGit.Views
|
|||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void OnChangeDoubleTapped(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (sender is ChangeCollectionView view)
|
||||
{
|
||||
var selected = view.tree?.RowSelection?.SelectedItem as ViewModels.FileTreeNode;
|
||||
if (selected != null && selected.IsFolder)
|
||||
selected.IsExpanded = !selected.IsExpanded;
|
||||
}
|
||||
|
||||
e.Handled = true;
|
||||
}
|
||||
|
||||
private void OnPressedSHA(object sender, PointerPressedEventArgs e)
|
||||
{
|
||||
if (DataContext is ViewModels.RevisionCompare vm && sender is TextBlock block)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue