Extend error handler to modals (#327)

This commit is contained in:
Davide De Rosa 2023-07-06 18:29:10 +01:00 committed by GitHub
parent 1935d9e92c
commit a7ea010d4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -62,6 +62,7 @@ extension View {
.listStyle(themeListStyleValue())
.toggleStyle(themeToggleStyleValue())
.menuStyle(.borderlessButton)
.withErrorHandler()
}
func themePrimaryView() -> some View {

View File

@ -34,7 +34,6 @@ struct PassepartoutApp: App {
WindowGroup {
MainView()
.withoutTitleBar()
.withErrorHandler()
.onIntentActivity(IntentDispatcher.connectVPN)
.onIntentActivity(IntentDispatcher.disableVPN)
.onIntentActivity(IntentDispatcher.enableVPN)