mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-22 23:58:36 +01:00
Remove code to auto expand reactivated accounts
This commit is contained in:
parent
99d24e1623
commit
245a648293
@ -511,23 +511,14 @@ class SceneCoordinator: NSObject, UndoableCommandRunner {
|
||||
}
|
||||
|
||||
@objc func accountStateDidChange(_ note: Notification) {
|
||||
let expandNewlyActivatedAccount = {
|
||||
if let account = note.userInfo?[Account.UserInfoKey.account] as? Account,
|
||||
account.isActive,
|
||||
let node = self.treeController.rootNode.childNodeRepresentingObject(account) {
|
||||
self.markExpanded(node)
|
||||
}
|
||||
}
|
||||
|
||||
if timelineFetcherContainsAnyPseudoFeed() {
|
||||
fetchAndMergeArticlesAsync(animated: true) {
|
||||
self.masterTimelineViewController?.reinitializeArticles(resetScroll: false)
|
||||
self.rebuildBackingStores(updateExpandedNodes: expandNewlyActivatedAccount)
|
||||
self.rebuildBackingStores()
|
||||
}
|
||||
} else {
|
||||
self.rebuildBackingStores(updateExpandedNodes: expandNewlyActivatedAccount)
|
||||
self.rebuildBackingStores()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@objc func userDidAddAccount(_ note: Notification) {
|
||||
|
Loading…
Reference in New Issue
Block a user