fix: change the window close to minimize the window.

there is currently an error in the tauri library.
This commit is contained in:
huzibaca committed 2024-10-21 23:16:45 +08:00
1 parent c2843f3c4b
commit f48c58f299
1 file changed
+1 -1
+1 -1
View File
@@ -16,7 +16,7 @@ use tauri_plugin_clipboard_manager::ClipboardExt;
pub fn open_or_close_dashboard() {
if let Some(window) = handle::Handle::global().get_window() {
if let Ok(true) = window.is_focused() {
let _ = window.close();
let _ = window.minimize();
return;
}
}