mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Skip the current folder for next unread
This commit is contained in:
@@ -289,6 +289,7 @@ private extension SidebarModel {
|
||||
section.visit { sidebarItem in
|
||||
if !foundStartFeed && sidebarItem.feed?.feedID == startingAt.feedID {
|
||||
foundStartFeed = true
|
||||
return false
|
||||
}
|
||||
if foundStartFeed && sidebarItem.unreadCount > 0 {
|
||||
nextSidebarItem = sidebarItem
|
||||
|
||||
@@ -75,7 +75,7 @@ class TimelineModel: ObservableObject, UndoableCommandRunner {
|
||||
func goToNextUnread() -> Bool {
|
||||
var startIndex: Int
|
||||
if let index = selectedTimelineItems.sorted(by: { $0.position < $1.position }).first?.position {
|
||||
startIndex = index
|
||||
startIndex = index + 1
|
||||
} else {
|
||||
startIndex = 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user