mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-21 23:18:42 +08:00
fix: When the shortcut key closes the window, the window is minimized
This commit is contained in:
1 parent
c16ae89a3d
commit
3f79e42628
1 file changed
+1
-1
@@ -21,7 +21,7 @@ use tauri_plugin_window_state::{AppHandleExt, StateFlags};
|
||||
pub fn open_or_close_dashboard() {
|
||||
if let Some(window) = handle::Handle::global().get_window() {
|
||||
if let Ok(true) = window.is_focused() {
|
||||
let _ = window.minimize();
|
||||
let _ = window.hide();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user