mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Disable Mark All as Read in Feed context menu item as it was just crushing Timeline performance
This commit is contained in:
@@ -81,17 +81,19 @@ struct TimelineContextMenu: View {
|
||||
}
|
||||
}
|
||||
|
||||
if let feed = timelineItem.article.webFeed, timelineModel.canMarkAllAsReadInFeed(feed) {
|
||||
Divider()
|
||||
Button {
|
||||
timelineModel.markAllAsReadInFeed(feed)
|
||||
} label: {
|
||||
Text("Mark All as Read in “\(feed.nameForDisplay)”")
|
||||
#if os(iOS)
|
||||
AppAssets.markAllAsReadImage
|
||||
#endif
|
||||
}
|
||||
}
|
||||
// This thing isn't lazily initialized and gets called excessively even for things like selecting an article
|
||||
|
||||
// if let feed = timelineItem.article.webFeed, timelineModel.canMarkAllAsReadInFeed(feed) {
|
||||
// Divider()
|
||||
// Button {
|
||||
// timelineModel.markAllAsReadInFeed(feed)
|
||||
// } label: {
|
||||
// Text("Mark All as Read in “\(feed.nameForDisplay)”")
|
||||
// #if os(iOS)
|
||||
// AppAssets.markAllAsReadImage
|
||||
// #endif
|
||||
// }
|
||||
// }
|
||||
|
||||
if timelineModel.canOpenIndicatedArticleInBrowser(timelineItem.article) {
|
||||
Divider()
|
||||
|
||||
Reference in New Issue
Block a user