eRequested, .. } | Event::UserEvent(UserEvents::CloseWindow) => { let _ = webview.take(); *control_flow = ControlFlow::Exit } _ => (), } }); }