fix: Save wrong window size

This commit is contained in:
MystiPanda
2023-12-12 16:23:39 +08:00
parent 2c8bc51862
commit 99503c836a
2 changed files with 12 additions and 6 deletions

View File

@@ -131,6 +131,9 @@ fn main() -> std::io::Result<()> {
tauri::RunEvent::WindowEvent { label, event, .. } => {
if label == "main" {
match event {
tauri::WindowEvent::Destroyed => {
let _ = resolve::save_window_size_position(&app_handle, true);
}
tauri::WindowEvent::CloseRequested { .. } => {
let _ = resolve::save_window_size_position(&app_handle, true);
}