Fix same link opened alerts

This commit is contained in:
Balazs Perlaki-Horvath 2024-03-21 22:52:36 +01:00 committed by Kelson
parent 0519cb4ca2
commit 879e6c54a6

View File

@ -46,8 +46,11 @@ struct ExternalLinkHandler: ViewModifier {
if case .ask(let url) = alert {
Button("external_link_handler.alert.button.load.link".localized) {
load(url: url)
externalURL = nil // important to nil out, so the same link tapped will trigger onChange again
}
Button("common.button.cancel".localized, role: .cancel) {
externalURL = nil // important to nil out, so the same link tapped will trigger onChange again
}
Button("common.button.cancel".localized, role: .cancel) { }
}
} message: { alert in
switch alert {