From dab70b3dc0120cfea2fd9336c1b9be4de1a67a6b Mon Sep 17 00:00:00 2001 From: jlewin Date: Wed, 19 Jun 2019 16:34:19 -0700 Subject: [PATCH] Don't collapse tree of existing selection --- MatterControlLib/CustomWidgets/TreeView/TreeView.cs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/MatterControlLib/CustomWidgets/TreeView/TreeView.cs b/MatterControlLib/CustomWidgets/TreeView/TreeView.cs index 6895a4f99..1850fbc81 100644 --- a/MatterControlLib/CustomWidgets/TreeView/TreeView.cs +++ b/MatterControlLib/CustomWidgets/TreeView/TreeView.cs @@ -210,17 +210,6 @@ namespace MatterHackers.MatterControl.CustomWidgets { OnBeforeSelect(null); - if (_selectedNode != null) - { - // Collapse the old tree - foreach (var ancestor in _selectedNode.Parents()) - { - ancestor.Expanded = false; - } - - _selectedNode.Expanded = false; - } - // if the current selection (before change) is !null than clear its background color if (_selectedNode != null) {