File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ public class RevisionFileRowsListBox : ListBox
109
109
110
110
protected override void OnKeyDown ( KeyEventArgs e )
111
111
{
112
- if ( SelectedItems is [ ViewModels . RevisionFileTreeNode { IsFolder : true } node ] && e . KeyModifiers == KeyModifiers . None )
112
+ if ( SelectedItem is ViewModels . RevisionFileTreeNode { IsFolder : true } node && e . KeyModifiers == KeyModifiers . None )
113
113
{
114
114
if ( ( node . IsExpanded && e . Key == Key . Left ) || ( ! node . IsExpanded && e . Key == Key . Right ) )
115
115
{
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public class RepositoryListBox : ListBox
32
32
33
33
protected override void OnKeyDown ( KeyEventArgs e )
34
34
{
35
- if ( SelectedItems is [ ViewModels . RepositoryNode { IsRepository : false } node ] && e . KeyModifiers == KeyModifiers . None )
35
+ if ( SelectedItem is ViewModels . RepositoryNode { IsRepository : false } node && e . KeyModifiers == KeyModifiers . None )
36
36
{
37
37
if ( ( node . IsExpanded && e . Key == Key . Left ) || ( ! node . IsExpanded && e . Key == Key . Right ) )
38
38
{
You can’t perform that action at this time.
0 commit comments