Skip reloading the sidebar after the tree controller rebuilds when the rebuilt version is the same as the previous version. This saves some cycles, and it’s part of fixing #791.
This commit is contained in:
parent
44ec6a026d
commit
2441de960f
@ -358,10 +358,11 @@ private extension SidebarViewController {
|
||||
|
||||
func rebuildTreeAndReloadDataIfNeeded() {
|
||||
if !animatingChanges && !BatchUpdate.shared.isPerforming {
|
||||
treeController.rebuild()
|
||||
if treeController.rebuild() {
|
||||
outlineView.reloadData()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func restoreSelection(to nodes: [Node], sendNotificationIfChanged: Bool) {
|
||||
if selectedNodes == nodes { // Nothing to do?
|
||||
|
Loading…
x
Reference in New Issue
Block a user