From e7666e60973664b8303484c6e880472d0eb7eb6f Mon Sep 17 00:00:00 2001 From: Davide Date: Thu, 31 Oct 2024 12:23:00 +0100 Subject: [PATCH] Fix previout commit on macOS --- Passepartout/App/Platforms/App+macOS.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Passepartout/App/Platforms/App+macOS.swift b/Passepartout/App/Platforms/App+macOS.swift index 164b32d7..0657eac6 100644 --- a/Passepartout/App/Platforms/App+macOS.swift +++ b/Passepartout/App/Platforms/App+macOS.swift @@ -71,9 +71,11 @@ extension PassepartoutApp { @SceneBuilder var body: some Scene { - Window(appName, id: appName, content: contentView) - .defaultSize(width: 600, height: 400) - .withEnvironment(from: context, theme: theme) + Window(appName, id: appName) { + contentView() + .withEnvironment(from: context, theme: theme) + } + .defaultSize(width: 600, height: 400) Settings { SettingsView(profileManager: context.profileManager)