Don't show select in sidebar if the web feed is already selected. Issue #1843

This commit is contained in:
Maurice Parker 2020-03-01 11:07:24 -08:00
parent 80858adced
commit 1c55e0c8a9
1 changed files with 3 additions and 1 deletions

View File

@ -169,7 +169,9 @@ private extension TimelineViewController {
menu.addSeparatorIfNeeded() menu.addSeparatorIfNeeded()
if articles.count == 1, let feed = articles.first!.webFeed { if articles.count == 1, let feed = articles.first!.webFeed {
if !(representedObjects?.contains(where: { $0 as? WebFeed == feed }) ?? false) {
menu.addItem(selectFeedInSidebarMenuItem(feed)) menu.addItem(selectFeedInSidebarMenuItem(feed))
}
if let markAllMenuItem = markAllAsReadMenuItem(feed) { if let markAllMenuItem = markAllAsReadMenuItem(feed) {
menu.addItem(markAllMenuItem) menu.addItem(markAllMenuItem)
} }