mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 11:42:21 +08:00
chore: window hide replaces window minimize
This commit is contained in:
parent
17fc9cf0eb
commit
4213a5fad1
|
@ -146,7 +146,7 @@ pub fn run() {
|
|||
let _ = resolve::save_window_size_position(true);
|
||||
api.prevent_close();
|
||||
let window = core::handle::Handle::global().get_window().unwrap();
|
||||
log_err!(window.minimize());
|
||||
log_err!(window.hide());
|
||||
}
|
||||
tauri::WindowEvent::Focused(true) => {
|
||||
#[cfg(target_os = "macos")]
|
||||
|
|
|
@ -121,7 +121,6 @@ pub fn create_window() {
|
|||
let app_handle = handle::Handle::global().app_handle().unwrap();
|
||||
|
||||
if let Some(window) = handle::Handle::global().get_window() {
|
||||
trace_err!(window.unminimize(), "set win unminimize");
|
||||
trace_err!(window.show(), "set win visible");
|
||||
trace_err!(window.set_focus(), "set win focus");
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user