Skip the current folder for next unread
This commit is contained in:
parent
66f8180006
commit
ecefe59a5e
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user