mirror of
https://github.com/lil-org/tokenary.git
synced 2024-12-02 09:33:49 +03:00
Switch to closeAllAndActivateBrowser
This commit is contained in:
parent
1d308b4b61
commit
86b61cb90e
@ -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")
|
||||
}
|
||||
|
@ -21,8 +21,7 @@ class ErrorViewController: NSViewController {
|
||||
}
|
||||
|
||||
@IBAction func actionButtonTapped(_ sender: Any) {
|
||||
Window.closeAll()
|
||||
Window.activateBrowser()
|
||||
Window.closeAllAndActivateBrowser()
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user