Fix missing welcome view

This commit is contained in:
Lumaa 2024-02-04 10:50:21 +01:00
parent f57c0aa9a0
commit d3a790001a

View File

@ -87,7 +87,7 @@ struct ContentView: View {
func recognizeAccount() async {
let appAccount: AppAccount? = AppAccount.loadAsCurrent()
if appAccount == nil {
uniNavigator.presentedSheet = .welcome
uniNavigator.presentedCover = .welcome
} else {
//TODO: Fix this? (Fatal error: calling into SwiftUI on a non-main thread is not supported)
accountManager.setClient(.init(server: appAccount!.server, oauthToken: appAccount!.oauthToken))
@ -97,7 +97,7 @@ struct ContentView: View {
if fetched == nil {
accountManager.clear()
appAccount!.clear()
uniNavigator.presentedSheet = .welcome
uniNavigator.presentedCover = .welcome
}
}
}