mirror of
https://github.com/lil-org/tokenary.git
synced 2024-12-12 12:33:42 +03:00
Don't select account from import window
This commit is contained in:
parent
6a342016b1
commit
bf548c30fa
@ -20,11 +20,10 @@ class ImportViewController: NSViewController {
|
||||
}
|
||||
|
||||
@IBAction func actionButtonTapped(_ sender: Any) {
|
||||
let account = accountsService.addAccount(input: textField.stringValue)
|
||||
if let account = account, accountsService.getAccounts().count == 1, let onSelectedAccount = onSelectedAccount {
|
||||
onSelectedAccount(account)
|
||||
} else {
|
||||
if accountsService.addAccount(input: textField.stringValue) != nil {
|
||||
showAccountsList()
|
||||
} else {
|
||||
// TODO: show error message
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user