mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-01 09:50:16 +00:00
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:
1 parent
44ec6a026d
commit
2441de960f
1 file changed
+3
-2
@@ -358,8 +358,9 @@ private extension SidebarViewController {
|
||||
|
||||
func rebuildTreeAndReloadDataIfNeeded() {
|
||||
if !animatingChanges && !BatchUpdate.shared.isPerforming {
|
||||
treeController.rebuild()
|
||||
outlineView.reloadData()
|
||||
if treeController.rebuild() {
|
||||
outlineView.reloadData()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user