fix: refine macOS authentication app lifecycle

This commit is contained in:
Kevin Yue committed 2026-08-06 10:59:56 +08:00
1 parent 588790f2d5
commit 17d1555155
5 files changed
+38 -8

No files matched your search

+3
View File
@@ -19,6 +19,9 @@ pub async fn authenticate(
tauri::Builder::default()
.setup(move |app| {
#[cfg(target_os = "macos")]
app.set_activation_policy(tauri::ActivationPolicy::Accessory);
apply_auth_theme(app.handle(), window_theme);
let app_handle = app.handle().clone();