Hey there, so I have been using this from the documentation to make the frontend run in background after the user close the app:
tauri::Builder::default().on_window_event(|event| match event.event() {
tauri::WindowEvent::CloseRequested { api, .. } => {
event.window().hide().unwrap();
api.prevent_close();
}
_ => {}
})
.run(tauri::generate_context!())
.expect("error while running tauri application");
https://tauri.app/v1/guides/features/system-tray/#configure-the-app-system-tray
And it all works fine and well because I see the app is still running when I close it however, I have trouble making the UI re-appear after closing it. I just see the icon on my taskbar but clicking on it doesn't reopen it (I'm on mac). Is that a normal behavior that is just happening in debug mode or is there a way to do it?
Thanks!