mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-26 13:29:31 -04:00
Fix same link opened alerts
This commit is contained in:
parent
0519cb4ca2
commit
879e6c54a6
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user