mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-23 08:09:41 +01:00
Make sure we respect the expanded state of the sections when rebuilding the shadow table
This commit is contained in:
parent
9dc8f8d37a
commit
7f4027a527
@ -1045,8 +1045,10 @@ private extension SceneCoordinator {
|
||||
for i in 0..<treeController.rootNode.numberOfChildNodes {
|
||||
|
||||
var result = [Node]()
|
||||
if let nodes = treeController.rootNode.childAtIndex(i)?.childNodes {
|
||||
for node in nodes {
|
||||
let sectionNode = treeController.rootNode.childAtIndex(i)!
|
||||
|
||||
if expandedNodes.contains(sectionNode) {
|
||||
for node in sectionNode.childNodes {
|
||||
result.append(node)
|
||||
if expandedNodes.contains(node) {
|
||||
for child in node.childNodes {
|
||||
|
Loading…
Reference in New Issue
Block a user