Always dismiss switch account screen on escape button

This commit is contained in:
Ivan Grachev 2022-08-19 17:23:54 +03:00
parent 033df6f155
commit f3bfc21a7c

View File

@ -305,6 +305,12 @@ class AccountsListViewController: NSViewController {
}
}
override func cancelOperation(_ sender: Any?) {
if accountSelectionConfiguration?.initiallyConnectedProviders.isEmpty == false {
callCompletion(specificWalletAccounts: nil)
}
}
private func walletForRow(_ row: Int) -> TokenaryWallet? {
guard row >= 0 else { return nil }
let item = cellModels[row]