Extend error handler to modals (#327)
This commit is contained in:
parent
1935d9e92c
commit
a7ea010d4e
|
@ -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 {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue