Merge branch '7.1.3-pre' of https://github.com/Ranchero-Software/NetNewsWire into 7.1.3-pre

This commit is contained in:
Brent Simmons committed 2026-08-02 15:16:01 -07:00
commit a6098cdcf7
1 file changed
+10 -1
+10 -1
View File
@@ -85,7 +85,8 @@ final class RootSplitViewController: UISplitViewController {
}
let articlesToMark = coordinator.articles
let title = NSLocalizedString("Mark All as Read", comment: "Command")
MarkAsReadAlertController.confirm(self, coordinator: coordinator, confirmTitle: title, sourceType: view as UIView) { [weak self] in
let completion: () -> Void = { [weak self] in
guard let self else {
return
}
@@ -93,6 +94,14 @@ final class RootSplitViewController: UISplitViewController {
self.coordinator.selectNextUnread()
}
}
// Anchor to the Mark All as Read button (keyboard shortcut has no source view).
// <https://github.com/Ranchero-Software/NetNewsWire/issues/5370>
if let markAllAsReadButton = (viewController(for: .supplementary) as? MainTimelineModernViewController)?.markAllAsReadButton {
MarkAsReadAlertController.confirm(self, coordinator: coordinator, confirmTitle: title, sourceType: markAllAsReadButton, completion: completion)
} else {
MarkAsReadAlertController.confirm(self, coordinator: coordinator, confirmTitle: title, sourceType: view as UIView, completion: completion)
}
}
@objc func markAboveAsRead(_ sender: Any?) {