Handle pending URL when core is started in AssistantView

This commit is contained in:
Benoit Martins 2025-07-10 09:46:11 +02:00
parent 05d955b698
commit 1c858a4d9b

View file

@ -189,6 +189,16 @@ struct RootView: View {
AssistantView()
ToastView().zIndex(3)
}
if coreContext.coreIsStarted {
VStack {} // Force trigger .onAppear
.onAppear {
if let url = pendingURL {
URIHandler.handleURL(url: url)
pendingURL = nil
}
}
}
} else {
ZStack {
MainViewSwitcher(