Skip to content

Commit

Permalink
Merge branch 'feature/bug_fixes' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmcl committed Jan 30, 2024
2 parents 9a664c0 + b876f57 commit b312246
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Kukai Mobile/Modules/Home/HomeTabBarController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -473,12 +473,22 @@ extension HomeTabBarController: WalletConnectServiceDelegate {
}

public func pairRequested() {
self.performSegue(withIdentifier: "wallet-connect-pair", sender: nil)
if self.presentedViewController == nil {
self.performSegue(withIdentifier: "wallet-connect-pair", sender: nil)
} else {
WalletConnectService.rejectCurrentProposal(completion: nil)
self.windowError(withTitle: "error".localized(), description: "error-wc2-cant-open-more-modals".localized())
}
}

public func signRequested() {
self.loadingViewHideActivityAndFade(withDuration: 0.5)
self.performSegue(withIdentifier: "wallet-connect-sign", sender: nil)
if self.presentedViewController == nil {
self.performSegue(withIdentifier: "wallet-connect-sign", sender: nil)
} else {
WalletConnectService.rejectCurrentRequest(completion: nil)
self.windowError(withTitle: "error".localized(), description: "error-wc2-cant-open-more-modals".localized())
}
}

public func processingIncomingOperations() {
Expand Down

0 comments on commit b312246

Please sign in to comment.