mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-02 03:56:55 +01:00
Add preferred action to all alert dialogs.
This commit is contained in:
parent
e8da13d086
commit
bf6e4b5bf3
@ -112,6 +112,7 @@ class AccountInspectorViewController: UITableViewController {
|
||||
}
|
||||
}
|
||||
alertController.addAction(markAction)
|
||||
alertController.preferredAction = markAction
|
||||
|
||||
present(alertController, animated: true)
|
||||
}
|
||||
|
@ -39,6 +39,7 @@ class ExtensionPointInspectorViewController: UITableViewController {
|
||||
self?.navigationController?.popViewController(animated: true)
|
||||
}
|
||||
alertController.addAction(markAction)
|
||||
alertController.preferredAction = markAction
|
||||
|
||||
present(alertController, animated: true)
|
||||
|
||||
|
@ -217,6 +217,7 @@ extension WebFeedInspectorViewController {
|
||||
let dismiss = UIAlertAction(title: NSLocalizedString("Dismiss", comment: "Dismiss"), style: .cancel, handler: nil)
|
||||
alert.addAction(openSettings)
|
||||
alert.addAction(dismiss)
|
||||
alert.preferredAction = openSettings
|
||||
return alert
|
||||
}
|
||||
|
||||
|
@ -1219,6 +1219,7 @@ private extension MasterFeedViewController {
|
||||
}
|
||||
|
||||
alertController.addAction(renameAction)
|
||||
alertController.preferredAction = renameAction
|
||||
|
||||
alertController.addTextField() { textField in
|
||||
textField.text = name
|
||||
@ -1256,6 +1257,7 @@ private extension MasterFeedViewController {
|
||||
self?.delete(indexPath: indexPath, feedID: feedID)
|
||||
}
|
||||
alertController.addAction(deleteAction)
|
||||
alertController.preferredAction = deleteAction
|
||||
|
||||
self.present(alertController, animated: true)
|
||||
}
|
||||
|
@ -43,6 +43,7 @@ private extension UIViewController {
|
||||
}
|
||||
|
||||
alertController.addAction(credentialsAction)
|
||||
alertController.preferredAction = credentialsAction
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user