fix: change the window close to minimize the window.

there is currently an error in the tauri library.
This commit is contained in:
huzibaca 2024-10-21 23:16:45 +08:00
parent bf245a4ee1
commit 545ea16ae8
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

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;
}
}