Fix bug that caused currently selected item to not be found on next unread
This commit is contained in:
parent
2efc0a17a9
commit
4c1061cfba
@ -26,6 +26,10 @@ struct SidebarExpandedContainers {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func contains(_ containerID: ContainerIdentifier) -> Bool {
|
||||||
|
return expandedTable.keys.contains(containerID)
|
||||||
|
}
|
||||||
|
|
||||||
subscript(_ containerID: ContainerIdentifier) -> Bool {
|
subscript(_ containerID: ContainerIdentifier) -> Bool {
|
||||||
get {
|
get {
|
||||||
if let result = expandedTable[containerID] {
|
if let result = expandedTable[containerID] {
|
||||||
|
@ -289,7 +289,6 @@ private extension SidebarModel {
|
|||||||
section.visit { sidebarItem in
|
section.visit { sidebarItem in
|
||||||
if !foundStartFeed && sidebarItem.feed?.feedID == startingAt.feedID {
|
if !foundStartFeed && sidebarItem.feed?.feedID == startingAt.feedID {
|
||||||
foundStartFeed = true
|
foundStartFeed = true
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
if foundStartFeed && sidebarItem.unreadCount > 0 {
|
if foundStartFeed && sidebarItem.unreadCount > 0 {
|
||||||
nextSidebarItem = sidebarItem
|
nextSidebarItem = sidebarItem
|
||||||
|
Loading…
x
Reference in New Issue
Block a user