From fa67f6888b28a24392dd8a89f990384b3594a9b0 Mon Sep 17 00:00:00 2001 From: pacholoamit Date: Thu, 10 Oct 2024 08:54:15 +0800 Subject: [PATCH] refactor: Simplify macOS-specific helper in build_and_run_app function --- src-tauri/src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 5b793875..d81f17bb 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -51,9 +51,7 @@ fn build_and_run_app(app: AppState) { // Some macOS-specific helpers #[cfg(target_os = "macos")] - { - main_window.set_traffic_lights_inset(12.0, 24.0).unwrap(); - } + main_window.set_traffic_lights_inset(12.0, 24.0).unwrap(); // BUILD TRAY - TODO MOVE TO DIFFERENT FILE