mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Clear the Timeline when selecting a different Feed in the sidebar before loading it again. Fixes #3735.
This commit is contained in:
@@ -2003,8 +2003,10 @@ private extension SceneCoordinator {
|
||||
// To be called when we need to do an entire fetch, but an async delay is okay.
|
||||
// Example: we have the Today feed selected, and the calendar day just changed.
|
||||
cancelPendingAsyncFetches()
|
||||
|
||||
emptyTheTimeline()
|
||||
|
||||
guard let timelineFeed = timelineFeed else {
|
||||
emptyTheTimeline()
|
||||
completion()
|
||||
return
|
||||
}
|
||||
@@ -2020,7 +2022,6 @@ private extension SceneCoordinator {
|
||||
self?.replaceArticles(with: articles, animated: animated)
|
||||
completion()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func fetchUnsortedArticlesAsync(for representedObjects: [Any], completion: @escaping ArticleSetBlock) {
|
||||
|
||||
Reference in New Issue
Block a user