From 6a3072fe040449d4476f470cca165e438f61a6f1 Mon Sep 17 00:00:00 2001 From: coolcoala Date: Mon, 29 Sep 2025 02:33:53 +0300 Subject: [PATCH] hide the icon from the dock on macOS when clicking the close button --- src-tauri/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index e0f8d9ee..f40f120d 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -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; }