mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Improved the UI of adding a new local account
This commit is contained in:
@@ -23,14 +23,9 @@ class AddLocalAccountViewController: UIViewController {
|
||||
nameTextField.delegate = self
|
||||
}
|
||||
|
||||
@IBAction func cancel(_ sender: Any) {
|
||||
dismiss(animated: true)
|
||||
}
|
||||
|
||||
@IBAction func done(_ sender: Any) {
|
||||
@IBAction func addAccountTapped(_ sender: Any) {
|
||||
let account = AccountManager.shared.createAccount(type: .onMyMac)
|
||||
account.name = nameTextField.text
|
||||
dismiss(animated: true)
|
||||
delegate?.dismiss()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user