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()) .listStyle(themeListStyleValue())
.toggleStyle(themeToggleStyleValue()) .toggleStyle(themeToggleStyleValue())
.menuStyle(.borderlessButton) .menuStyle(.borderlessButton)
.withErrorHandler()
} }
func themePrimaryView() -> some View { func themePrimaryView() -> some View {

View File

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