Don't collapse tree of existing selection
This commit is contained in:
parent
ca2d378b8c
commit
dab70b3dc0
1 changed files with 0 additions and 11 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue