mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 04:43:44 +08:00
fix: change the window close to minimize the window.
there is currently an error in the tauri library.
This commit is contained in:
parent
c2843f3c4b
commit
f48c58f299
@ -16,7 +16,7 @@ use tauri_plugin_clipboard_manager::ClipboardExt;
|
|||||||
pub fn open_or_close_dashboard() {
|
pub fn open_or_close_dashboard() {
|
||||||
if let Some(window) = handle::Handle::global().get_window() {
|
if let Some(window) = handle::Handle::global().get_window() {
|
||||||
if let Ok(true) = window.is_focused() {
|
if let Ok(true) = window.is_focused() {
|
||||||
let _ = window.close();
|
let _ = window.minimize();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user