taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 92f6405f6d73a15bdc8e04ee8d2f54dd29511389
parent 41472519d687dcda8881285c0c08a4a35ffb2f06
Author: Marc Stibane <marc@taler.net>
Date:   Sat, 20 Jul 2024 20:37:36 +0200

shouldShowWarning

Diffstat:
MTalerWallet1/Views/Sheets/URLSheet.swift | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/TalerWallet1/Views/Sheets/URLSheet.swift b/TalerWallet1/Views/Sheets/URLSheet.swift @@ -59,10 +59,12 @@ struct URLSheet: View { } } .task { - let incomingExpected = controller.frontendState == 1 let command = controller.openURL(urlToOpen, stack: stack.push()) - if incomingExpected && command.isOutgoing { - showAlert = true + if shouldShowWarning { + let incomingExpected = controller.frontendState == 1 + if incomingExpected && command.isOutgoing { + showAlert = true + } } urlCommand = command }