From 391a494af659d0c1c09072355187b5bd85ed616d Mon Sep 17 00:00:00 2001 From: "Christine." Date: Sat, 1 Mar 2025 19:52:42 +0800 Subject: [PATCH] fix: build failed with Windows (#2825) --- src-tauri/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 464a3675..3ac2bf2c 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -204,6 +204,7 @@ pub fn run() { tauri::RunEvent::Ready | tauri::RunEvent::Resumed => { AppHandleManager::global().init(app_handle.clone()); } + #[cfg(target_os = "macos")] tauri::RunEvent::Reopen { has_visible_windows, .. } => { if !has_visible_windows { AppHandleManager::global().set_activation_policy_regular();