Skip to content

Commit 0ea08e9

Browse files
fix(example): unminimize window on tray icon click (#13949)
1 parent 887b8da commit 0ea08e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/api/src-tauri/src/tray.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ pub fn create_tray<R: Runtime>(app: &tauri::AppHandle<R>) -> tauri::Result<()> {
117117
{
118118
let app = tray.app_handle();
119119
if let Some(window) = app.get_webview_window("main") {
120+
let _ = window.unminimize();
120121
let _ = window.show();
121122
let _ = window.set_focus();
122123
}

0 commit comments

Comments
 (0)