pub fn handle_close_request(
window: &WebviewWindow,
api: &CloseRequestApi,
state: &LifecycleState,
run_in_background: bool,
) -> Result<CloseDecision, LifecycleError>Expand description
Applies the close decision to the main window. If hiding fails, the window is shown again and an error is returned instead of leaving it invisible.