fix(desktop): set macOS accessory activation policy to Accessory (#189)

This commit is contained in:
Huakun 2025-02-22 05:14:04 -05:00 committed by GitHub
parent ed20f9a142
commit 52919b8d2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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