.on_window_event(|event| match event.event() {
tauri::WindowEvent::CloseRequested { api, .. } => {
println!("heyo?");
event.window().hide().unwrap();
api.prevent_close();
}
_ => {}
})
I have the following code to prevent the app from exiting and instead minimizing it to the system tray but I am using a custom navbar and the quit button triggers appwindow.close() which in turn should trigger CloseRequested but it doesn't ,
There is an appwindow.destroy() to bypass the CloseRequested already I don't see why both of them behave the same way?