Skip to main content

handle_close_requested

Function handle_close_requested 

Source
pub fn handle_close_requested(window: &Window, api: &CloseRequestApi)
Expand description

WindowEvent::CloseRequested handler: prevent the actual close and hide the window instead, so the app keeps running in the tray.