mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-29 16:54:43 +02:00
Optimize the recursive folding in TreeView
This commit is contained in:
parent
c8b70dacd7
commit
998ad2aa87
@ -275,7 +275,6 @@ void TreeView::foldRecursively(HTREEITEM hParentItem) const
|
||||
foldRecursively(hItem);
|
||||
fold(hItem);
|
||||
}
|
||||
fold(hParentItem);
|
||||
}
|
||||
|
||||
void TreeView::foldAll() const
|
||||
@ -285,6 +284,7 @@ void TreeView::foldAll() const
|
||||
tvProj = getNextSibling(tvProj))
|
||||
{
|
||||
foldRecursively(tvProj);
|
||||
fold(tvProj);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user