Skip to content

Commit

Permalink
Fixed bug with selection changing.
Browse files Browse the repository at this point in the history
  • Loading branch information
vchelaru committed Jan 31, 2024
1 parent cee72e8 commit db24701
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ public static void HandleSelected(NodeViewModel nodeViewModel, bool focus, bool
else
{
didSelectionChange = currentNodes.Any(item => item.Tag == nodeViewModel.Tag) == false;

if(!didSelectionChange && replaceSelection)
{
didSelectionChange = currentNodes.Contains(nodeViewModel) == false;
}
}


Expand All @@ -119,6 +124,7 @@ public static void HandleSelected(NodeViewModel nodeViewModel, bool focus, bool
currentNodes.Clear();

mainViewModel.DeselectResursively(callSelectionLogic: false);

}


Expand Down

0 comments on commit db24701

Please sign in to comment.