hide the icon from the dock on macOS when clicking the close button

This commit is contained in:
coolcoala
2025-09-29 02:33:53 +03:00
parent 98d943f39d
commit 6a3072fe04

View File

@@ -411,6 +411,7 @@ pub fn run() {
match event {
tauri::WindowEvent::CloseRequested { api, .. } => {
#[cfg(target_os = "macos")]
AppHandleManager::global().set_activation_policy_accessory();
if core::handle::Handle::global().is_exiting() {
return;
}