From 16e4f66f78a9ab73afd9fd493aa3525cb36c10b5 Mon Sep 17 00:00:00 2001 From: Elias Stepanik <40958815+eliasstepanik@users.noreply.github.com> Date: Mon, 24 Mar 2025 00:36:23 +0100 Subject: [PATCH] Update main.rs --- src/main.rs | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/main.rs b/src/main.rs index c9bc0e1..85adf58 100644 --- a/src/main.rs +++ b/src/main.rs @@ -68,21 +68,19 @@ fn register_platform_plugins(app: &mut App) { #[cfg(target_os = "macos")] { info!("Adding macOS-specific plugins"); - app.add_plugins(DefaultPlugins) - .set(WindowPlugin { + app.add_plugins(DefaultPlugins.set(WindowPlugin { primary_window: Some(Window { - title: crate::TITLE.to_string(), // Window title - resolution: crate::RESOLUTION.into(), // Initial resolution (width x height) - resizable: crate::RESIZABLE, // Allow resizing - decorations: crate::DECORATIONS, // Enable window decorations - transparent: crate::TRANSPARENT, // Opaque background - present_mode: crate::PRESENT_MODE, // VSync mode - ..default() - }), + title: crate::TITLE.to_string(), // Window title + resolution: crate::RESOLUTION.into(), // Initial resolution (width x height) + resizable: crate::RESIZABLE, // Allow resizing + decorations: crate::DECORATIONS, // Enable window decorations + transparent: crate::TRANSPARENT, // Opaque background + present_mode: crate::PRESENT_MODE, // VSync mode + ..default() }), ..default() - }); + })); } } fn should_display_inspector(inspector_visible: Res) -> bool { inspector_visible.0 -} \ No newline at end of file +}