mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-03 12:27:32 +01:00
Fixes #2280
This commit is contained in:
parent
6be14a099b
commit
646a3190e5
@ -12,6 +12,10 @@ struct TimelineToolbarModifier: ViewModifier {
|
||||
|
||||
@EnvironmentObject private var sceneModel: SceneModel
|
||||
@EnvironmentObject private var timelineModel: TimelineModel
|
||||
@Environment(\.presentationMode) var presentationMode
|
||||
#if os(iOS)
|
||||
@Environment(\.horizontalSizeClass) private var horizontalSizeClass
|
||||
#endif
|
||||
@State private var isReadFiltered: Bool? = nil
|
||||
|
||||
func body(content: Content) -> some View {
|
||||
@ -40,6 +44,11 @@ struct TimelineToolbarModifier: ViewModifier {
|
||||
ToolbarItem(placement: .bottomBar) {
|
||||
Button {
|
||||
sceneModel.markAllAsRead()
|
||||
#if os(iOS)
|
||||
if horizontalSizeClass == .compact {
|
||||
presentationMode.wrappedValue.dismiss()
|
||||
}
|
||||
#endif
|
||||
} label: {
|
||||
AppAssets.markAllAsReadImage
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user