mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix bug that caused currently selected item to not be found on next unread
This commit is contained in:
@@ -26,6 +26,10 @@ struct SidebarExpandedContainers {
|
||||
}
|
||||
}
|
||||
|
||||
func contains(_ containerID: ContainerIdentifier) -> Bool {
|
||||
return expandedTable.keys.contains(containerID)
|
||||
}
|
||||
|
||||
subscript(_ containerID: ContainerIdentifier) -> Bool {
|
||||
get {
|
||||
if let result = expandedTable[containerID] {
|
||||
|
||||
@@ -289,7 +289,6 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user