mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-19 14:22:10 +00:00
parent
9e6e59276b
commit
c0234b07a8
@ -48,7 +48,17 @@ struct PassepartoutApp: App {
|
|||||||
private var theme = Theme()
|
private var theme = Theme()
|
||||||
|
|
||||||
var body: some Scene {
|
var body: some Scene {
|
||||||
Window(appName, id: appName) {
|
#if os(iOS)
|
||||||
|
WindowGroup(content: content)
|
||||||
|
#else
|
||||||
|
Window(appName, id: appName, content: content)
|
||||||
|
.defaultSize(width: 600.0, height: 400.0)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private extension PassepartoutApp {
|
||||||
|
func content() -> some View {
|
||||||
AppCoordinator(
|
AppCoordinator(
|
||||||
profileManager: context.profileManager,
|
profileManager: context.profileManager,
|
||||||
tunnel: context.tunnel,
|
tunnel: context.tunnel,
|
||||||
@ -66,8 +76,4 @@ struct PassepartoutApp: App {
|
|||||||
.environmentObject(context.iapManager)
|
.environmentObject(context.iapManager)
|
||||||
.environmentObject(context.connectionObserver)
|
.environmentObject(context.connectionObserver)
|
||||||
}
|
}
|
||||||
#if os(macOS)
|
|
||||||
.defaultSize(width: 600.0, height: 400.0)
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user