mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-29 02:09:30 +01:00
Fix next and previous buttons on Detail
This commit is contained in:
parent
c44fcbc198
commit
d8b7d603bf
@ -196,14 +196,14 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
|
||||
guard isPrevArticleAvailable, let articleRow = currentArticleRow else {
|
||||
return nil
|
||||
}
|
||||
return articles[articleRow]
|
||||
return articles[articleRow - 1]
|
||||
}
|
||||
|
||||
var nextArticle: Article? {
|
||||
guard isNextArticleAvailable, let articleRow = currentArticleRow else {
|
||||
return nil
|
||||
}
|
||||
return articles[articleRow]
|
||||
return articles[articleRow + 1]
|
||||
}
|
||||
|
||||
var firstUnreadArticleIndexPath: IndexPath? {
|
||||
|
Loading…
x
Reference in New Issue
Block a user