Don't show select in sidebar if the web feed is already selected. Issue #1843
This commit is contained in:
parent
80858adced
commit
1c55e0c8a9
|
@ -169,7 +169,9 @@ private extension TimelineViewController {
|
|||
menu.addSeparatorIfNeeded()
|
||||
|
||||
if articles.count == 1, let feed = articles.first!.webFeed {
|
||||
if !(representedObjects?.contains(where: { $0 as? WebFeed == feed }) ?? false) {
|
||||
menu.addItem(selectFeedInSidebarMenuItem(feed))
|
||||
}
|
||||
if let markAllMenuItem = markAllAsReadMenuItem(feed) {
|
||||
menu.addItem(markAllMenuItem)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue