fix: build failed with Windows (#2825)

This commit is contained in:
Christine. 2025-03-01 19:52:42 +08:00 committed by GitHub
parent 623d075ab8
commit 391a494af6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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