fix(example): unminimize window on tray icon click (#13949)

This commit is contained in:
Tony
2025-08-05 10:07:16 +08:00
committed by GitHub
parent 887b8da684
commit 0ea08e901e

View File

@@ -117,6 +117,7 @@ pub fn create_tray<R: Runtime>(app: &tauri::AppHandle<R>) -> tauri::Result<()> {
{
let app = tray.app_handle();
if let Some(window) = app.get_webview_window("main") {
let _ = window.unminimize();
let _ = window.show();
let _ = window.set_focus();
}