fix: build failed with Windows (#2825)

This commit is contained in:
Christine. 2025-03-01 19:52:42 +08:00 committed by GitHub
parent 1cdba297fb
commit 23dcfd9401

View File

@ -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();