mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-05 03:37:41 +00:00
Convert RSCore to approachable concurrency.
This commit is contained in:
1 parent
5db095568b
commit
1f51119aa3
121 files changed
+741
-709
No files matched your search
@@ -66,7 +66,8 @@ private extension UIViewController {
|
||||
let title = NSLocalizedString("Account Error", comment: "Account Error")
|
||||
let alertController = UIAlertController(title: title, message: error.localizedDescription, preferredStyle: .alert)
|
||||
|
||||
if error.account?.type == .feedbin {
|
||||
let account = AccountError.account(from: error)
|
||||
if account?.type == .feedbin {
|
||||
|
||||
let credentialsTitle = NSLocalizedString("Update Credentials", comment: "Update Credentials")
|
||||
let credentialsAction = UIAlertAction(title: credentialsTitle, style: .default) { [weak self] _ in
|
||||
@@ -75,7 +76,7 @@ private extension UIViewController {
|
||||
let navController = UIStoryboard.account.instantiateViewController(withIdentifier: "FeedbinAccountNavigationViewController") as! UINavigationController
|
||||
navController.modalPresentationStyle = .formSheet
|
||||
let addViewController = navController.topViewController as! FeedbinAccountViewController
|
||||
addViewController.account = error.account
|
||||
addViewController.account = account
|
||||
self?.present(navController, animated: true)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user