Skip to content

Commit

Permalink
fix: more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Oct 27, 2024
1 parent cc4bb51 commit 0bcc517
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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, .. } => {
Expand All @@ -228,6 +229,8 @@ fn main() {
api.prevent_close();
}

log!("Closing window");

window
.app_handle()
.save_window_state(StateFlags::all())
Expand Down Expand Up @@ -323,4 +326,6 @@ fn main() {
})
.run(context)
.expect("error while running tauri application");

log!("App exited");
}

0 comments on commit 0bcc517

Please sign in to comment.