chore: window hide replaces window minimize

This commit is contained in:
huzibaca 2024-10-30 13:51:58 +08:00
parent 17fc9cf0eb
commit 4213a5fad1
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302
2 changed files with 1 additions and 2 deletions

View File

@ -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")]

View File

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