mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 21:03:44 +08:00
fix: When the shortcut key closes the window, the window is minimized
This commit is contained in:
parent
c16ae89a3d
commit
3f79e42628
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user