Switch to closeAllAndActivateBrowser

This commit is contained in:
Ivan Grachyov 2021-06-19 19:38:51 +03:00
parent 1d308b4b61
commit 86b61cb90e
2 changed files with 2 additions and 4 deletions

View File

@ -197,8 +197,7 @@ class Agent: NSObject {
private func connectWallet(session: WCSession, account: Account) {
WalletConnect.shared.connect(session: session, address: account.address) { [weak self] connected in
if connected {
Window.closeAll()
Window.activateBrowser()
Window.closeAllAndActivateBrowser()
} else {
self?.showErrorMessage("Failed to connect")
}

View File

@ -21,8 +21,7 @@ class ErrorViewController: NSViewController {
}
@IBAction func actionButtonTapped(_ sender: Any) {
Window.closeAll()
Window.activateBrowser()
Window.closeAllAndActivateBrowser()
}
}