change tray icon click behavior
This commit is contained in:
@@ -16,6 +16,9 @@ pub fn run() {
|
|||||||
if let Ok(true) = window.is_minimized() {
|
if let Ok(true) = window.is_minimized() {
|
||||||
let _ = window.unminimize();
|
let _ = window.unminimize();
|
||||||
}
|
}
|
||||||
|
if let Ok(false) = window.is_visible() {
|
||||||
|
let _ = window.show();
|
||||||
|
}
|
||||||
let _ = window.set_focus();
|
let _ = window.set_focus();
|
||||||
}))
|
}))
|
||||||
.plugin(tauri_plugin_fs::init())
|
.plugin(tauri_plugin_fs::init())
|
||||||
|
|||||||
Reference in New Issue
Block a user