Moved expanded state away from Node so that it won't get lost on rebuilds. Issue #1346

This commit is contained in:
Maurice Parker
2019-11-24 18:29:00 -06:00
parent cd493730b1
commit 6a56936850
10 changed files with 126 additions and 35 deletions

View File

@@ -40,7 +40,6 @@ private extension WebFeedTreeControllerDelegate {
let smartFeedsNode = rootNode.existingOrNewChildNode(with: SmartFeedsController.shared)
smartFeedsNode.canHaveChildNodes = true
smartFeedsNode.isGroupItem = true
smartFeedsNode.isExpanded = true
topLevelNodes.append(smartFeedsNode)
}
@@ -137,7 +136,6 @@ private extension WebFeedTreeControllerDelegate {
let accountNode = parent.existingOrNewChildNode(with: account)
accountNode.canHaveChildNodes = true
accountNode.isGroupItem = true
accountNode.isExpanded = true
return accountNode
}
return nodes