From 4afa67bfaa44886e88e03acf2035ea70200ae4c8 Mon Sep 17 00:00:00 2001 From: Jonson Petard <41122242+greenhat616@users.noreply.github.com> Date: Thu, 7 Dec 2023 23:42:01 +0800 Subject: [PATCH] fix: use a workaroud to reduce #59 --- backend/tauri/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/tauri/src/main.rs b/backend/tauri/src/main.rs index 76a0a8cfbf..3ce984c1fb 100644 --- a/backend/tauri/src/main.rs +++ b/backend/tauri/src/main.rs @@ -132,6 +132,7 @@ fn main() -> std::io::Result<()> { } tauri::WindowEvent::Moved(_) | tauri::WindowEvent::Resized(_) => { // log::info!(target: "app", "window moved or resized"); + std::thread::sleep(std::time::Duration::from_nanos(1)); let _ = resolve::save_window_state(app_handle, false); } _ => {}