change tray icon click behavior

master
cast1e 2024-10-17 22:19:34 +08:00
parent c71ed9a982
commit 916389ca55
1 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,9 @@ pub fn run() {
if let Ok(true) = window.is_minimized() {
let _ = window.unminimize();
}
if let Ok(false) = window.is_visible() {
let _ = window.show();
}
let _ = window.set_focus();
}))
.plugin(tauri_plugin_fs::init())