mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Change next unread function so that it skips the current article even if that article is marked as unread
This commit is contained in:
@@ -879,7 +879,7 @@ private extension SceneCoordinator {
|
||||
func selectNextUnreadArticleInTimeline() -> Bool {
|
||||
let startingRow: Int = {
|
||||
if let indexPath = currentArticleIndexPath {
|
||||
return indexPath.row
|
||||
return indexPath.row + 1
|
||||
} else {
|
||||
return 0
|
||||
}
|
||||
@@ -890,6 +890,10 @@ private extension SceneCoordinator {
|
||||
|
||||
func selectArticleInTimeline(startingRow: Int) -> Bool {
|
||||
|
||||
guard startingRow < articles.count else {
|
||||
return false
|
||||
}
|
||||
|
||||
for i in startingRow..<articles.count {
|
||||
let article = articles[i]
|
||||
if !article.status.read {
|
||||
|
||||
Reference in New Issue
Block a user