revert: disable double-click folding/unfolding because it will cause IndexOutOfRange exception

This commit is contained in:
leo 2024-05-29 21:56:03 +08:00
parent a382a3e564
commit ea1bfad84d
6 changed files with 2 additions and 55 deletions

View file

@ -105,14 +105,7 @@
ViewMode="{Binding Source={x:Static vm:Preference.Instance}, Path=CommitChangeViewMode}"
Changes="{Binding VisibleChanges}"
SelectedChanges="{Binding SelectedChanges, Mode=TwoWay}"
ContextRequested="OnChangeContextRequested"
ChangeDoubleTapped="OnChangeDoubleTapped">
<v:ChangeCollectionView.Styles>
<Style Selector="TreeDataGridExpanderCell" x:DataType="vm:FileTreeNode">
<Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}"/>
</Style>
</v:ChangeCollectionView.Styles>
</v:ChangeCollectionView>
ContextRequested="OnChangeContextRequested"/>
</Border>
</Grid>