From b7d7e1a1af29305b07ff285b880115982d5194f1 Mon Sep 17 00:00:00 2001 From: coolcoala Date: Sun, 3 Aug 2025 11:21:02 +0300 Subject: [PATCH] fixed issue with clicking on shortcut --- src-tauri/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index b490adba..92a37273 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -364,6 +364,10 @@ pub fn run() { } => { if !has_visible_windows { AppHandleManager::global().set_activation_policy_regular(); + if let Some(window) = app_handle.get_webview_window("main") { + let _ = window.show(); + let _ = window.set_focus(); + } } AppHandleManager::global().init(app_handle.clone()); } @@ -384,7 +388,6 @@ 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; }