mirror of
https://github.com/lil-org/tokenary.git
synced 2024-12-02 09:33:49 +03:00
Fix activating browser after connection
This commit is contained in:
parent
c42d97b967
commit
7c681bc923
@ -250,10 +250,11 @@ class Agent: NSObject {
|
||||
|
||||
private func connectWallet(session: WCSession, account: Account) {
|
||||
let windowController = Window.showNew()
|
||||
let window = windowController.window
|
||||
windowController.contentViewController = WaitingViewController.withReason("Connecting")
|
||||
|
||||
WalletConnect.shared.connect(session: session, address: account.address) { [weak windowController] _ in
|
||||
if windowController?.window?.isVisible == true {
|
||||
WalletConnect.shared.connect(session: session, address: account.address) { [weak window] _ in
|
||||
if window?.isVisible == true {
|
||||
Window.closeAllAndActivateBrowser()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user