diff --git a/Encrypted Ink/Agent.swift b/Encrypted Ink/Agent.swift index 56afad98..1c548585 100644 --- a/Encrypted Ink/Agent.swift +++ b/Encrypted Ink/Agent.swift @@ -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") } diff --git a/Encrypted Ink/Screens/ErrorViewController.swift b/Encrypted Ink/Screens/ErrorViewController.swift index bf37eb00..b73be4b8 100644 --- a/Encrypted Ink/Screens/ErrorViewController.swift +++ b/Encrypted Ink/Screens/ErrorViewController.swift @@ -21,8 +21,7 @@ class ErrorViewController: NSViewController { } @IBAction func actionButtonTapped(_ sender: Any) { - Window.closeAll() - Window.activateBrowser() + Window.closeAllAndActivateBrowser() } }