From 52919b8d2f0b784417c92b0d008f621259a29ee1 Mon Sep 17 00:00:00 2001 From: Huakun Date: Sat, 22 Feb 2025 05:14:04 -0500 Subject: [PATCH] fix(desktop): set macOS accessory activation policy to Accessory (#189) --- apps/desktop/src-tauri/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rs index d02f488..7eacd17 100644 --- a/apps/desktop/src-tauri/src/lib.rs +++ b/apps/desktop/src-tauri/src/lib.rs @@ -230,7 +230,8 @@ pub fn run() { } // setup::deeplink::setup_deeplink(app); // #[cfg(all(target_os = "macos", debug_assertions))] - // app.set_activation_policy(ActivationPolicy::Accessory); + #[cfg(target_os = "macos")] + app.set_activation_policy(ActivationPolicy::Accessory); // let mut store = StoreBuilder::new("appConfig.bin").build(app.handle().clone()); // let store = app.handle().store_builder("appConfig.json").build()?;