From 0bcc5176f6a3c5356d338a62b86e599d26d8b5ce Mon Sep 17 00:00:00 2001 From: SpikeHD <25207995+SpikeHD@users.noreply.github.com> Date: Sun, 27 Oct 2024 15:10:09 -0700 Subject: [PATCH] fix: more logs --- src-tauri/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 8c0c7284..87b0077a 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -214,6 +214,7 @@ fn main() { std::thread::sleep(Duration::from_millis(1)); } tauri::WindowEvent::Destroyed { .. } => { + log!("Destroyed window"); functionality::cache::maybe_clear_cache(); } tauri::WindowEvent::CloseRequested { api, .. } => { @@ -228,6 +229,8 @@ fn main() { api.prevent_close(); } + log!("Closing window"); + window .app_handle() .save_window_state(StateFlags::all()) @@ -323,4 +326,6 @@ fn main() { }) .run(context) .expect("error while running tauri application"); + + log!("App exited"); }