mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Don't reload feeds or articles if they are reselected. Issue #1017
This commit is contained in:
@@ -495,6 +495,8 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
|
||||
}
|
||||
|
||||
func selectFeed(_ indexPath: IndexPath?, automated: Bool = true) {
|
||||
guard indexPath != currentFeedIndexPath else { return }
|
||||
|
||||
selectArticle(nil)
|
||||
currentFeedIndexPath = indexPath
|
||||
|
||||
@@ -545,6 +547,8 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
|
||||
}
|
||||
|
||||
func selectArticle(_ article: Article?, automated: Bool = true) {
|
||||
guard article != currentArticle else { return }
|
||||
|
||||
currentArticle = article
|
||||
activityManager.reading(currentArticle)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user