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:
committed by
Brent Simmons
parent
081bab1249
commit
65936f3a1b
@@ -1963,8 +1963,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
|
||||
}
|
||||
@@ -1980,7 +1982,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