-
Beta Was this translation helpful? Give feedback.
Answered by
l3ve
Jan 18, 2023
Replies: 1 comment
-
Try this app.set_activation_policy(ActivationPolicy::Accessory);
/// Sets the activation policy for the application. It is set to `NSApplicationActivationPolicyRegular` by default.
///
/// # Examples
/// ```,no_run
/// let mut app = tauri::Builder::default()
/// // on an actual app, remove the string argument
/// .build(tauri::generate_context!("test/fixture/src-tauri/tauri.conf.json"))
/// .expect("error while building tauri application");
/// #[cfg(target_os = "macos")]
/// app.set_activation_policy(tauri::ActivationPolicy::Accessory);
/// app.run(|_app_handle, _event| {});
/// ```
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
amrbashir
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this