Don't reload feeds or articles if they are reselected. Issue #1017

This commit is contained in:
Maurice Parker 2019-09-13 11:19:19 -05:00
parent 1bcd265c80
commit 7a9ad97b32
1 changed files with 4 additions and 0 deletions

View File

@ -495,6 +495,8 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
} }
func selectFeed(_ indexPath: IndexPath?, automated: Bool = true) { func selectFeed(_ indexPath: IndexPath?, automated: Bool = true) {
guard indexPath != currentFeedIndexPath else { return }
selectArticle(nil) selectArticle(nil)
currentFeedIndexPath = indexPath currentFeedIndexPath = indexPath
@ -545,6 +547,8 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
} }
func selectArticle(_ article: Article?, automated: Bool = true) { func selectArticle(_ article: Article?, automated: Bool = true) {
guard article != currentArticle else { return }
currentArticle = article currentArticle = article
activityManager.reading(currentArticle) activityManager.reading(currentArticle)