Fix next unread and first unread timeline animations

This commit is contained in:
Maurice Parker 2019-10-09 21:39:11 -05:00
parent ba8d1dfa83
commit 7e30bba16a
2 changed files with 5 additions and 5 deletions

View File

@ -102,7 +102,7 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
}
@IBAction func firstUnread(_ sender: Any) {
coordinator.selectNextUnread()
coordinator.selectFirstUnread()
}
// MARK: Keyboard shortcuts

View File

@ -1173,7 +1173,7 @@ private extension SceneCoordinator {
@discardableResult
func selectFirstUnreadArticleInTimeline() -> Bool {
return selectNextArticleInTimeline(startingRow: 0)
return selectNextArticleInTimeline(startingRow: 0, animated: true)
}
@discardableResult
@ -1186,10 +1186,10 @@ private extension SceneCoordinator {
}
}()
return selectNextArticleInTimeline(startingRow: startingRow)
return selectNextArticleInTimeline(startingRow: startingRow, animated: false)
}
func selectNextArticleInTimeline(startingRow: Int) -> Bool {
func selectNextArticleInTimeline(startingRow: Int, animated: Bool) -> Bool {
guard startingRow < articles.count else {
return false
@ -1198,7 +1198,7 @@ private extension SceneCoordinator {
for i in startingRow..<articles.count {
let article = articles[i]
if !article.status.read {
selectArticle(article, animated: true)
selectArticle(article, animated: animated)
return true
}
}