fix: restore the window state first, then set the window size

This commit is contained in:
huzibaca
2024-11-23 06:39:25 +08:00
parent f08d2c998d
commit a14c3f81b0
2 changed files with 16 additions and 5 deletions

View File

@@ -121,7 +121,6 @@ pub fn quit(code: Option<i32>) {
handle::Handle::global().set_is_exiting();
resolve::resolve_reset();
log_err!(handle::Handle::global().get_window().unwrap().close());
println!("saving window state");
match app_handle.save_window_state(StateFlags::all()) {
Ok(_) => {
println!("window state saved successfully");