Don't collapse tree of existing selection

This commit is contained in:
jlewin 2019-06-19 16:34:19 -07:00
parent ca2d378b8c
commit dab70b3dc0

View file

@ -210,17 +210,6 @@ namespace MatterHackers.MatterControl.CustomWidgets
{
OnBeforeSelect(null);
if (_selectedNode != null)
{
// Collapse the old tree
foreach (var ancestor in _selectedNode.Parents<TreeNode>())
{
ancestor.Expanded = false;
}
_selectedNode.Expanded = false;
}
// if the current selection (before change) is !null than clear its background color
if (_selectedNode != null)
{