change activation policy only on macos

This commit is contained in:
Nikita Galaiko 2023-02-21 17:09:08 +01:00
parent 55fff0677f
commit 40d3961def
No known key found for this signature in database
GPG Key ID: EBAB54E845BA519D

View File

@ -383,6 +383,7 @@ fn main() {
_ => {}
})
.setup(move |app| {
#[cfg(target_os = "macos")]
app.set_activation_policy(tauri::ActivationPolicy::Accessory);
let resolver = app.path_resolver();