🐛 debug windows close

This commit is contained in:
Tw93
2024-12-21 11:29:33 +08:00
parent 7f5d3f8b67
commit c5a8c68e82

View File

@@ -101,8 +101,8 @@ pub fn run_app() {
Ok(())
})
.on_window_event(|window, event| {
#[cfg(target_os = "macos")]
if let tauri::WindowEvent::CloseRequested { api, .. } = event {
#[cfg(target_os = "macos")]
{
let window_handle = window.clone();
tauri::async_runtime::spawn(async move {