mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-03 10:47:21 +00:00
Merge branch '7.1.3-pre' of https://github.com/Ranchero-Software/NetNewsWire into 7.1.3-pre
This commit is contained in:
commit
a6098cdcf7
1 file changed
+10
-1
@@ -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?) {
|
||||
|
||||
Reference in new issue
Block a user