mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 04:40:04 -04:00
orbital: Fix EventLoop::run_app_on_demand
Previously event_loop.exit() would persist and cause all future run_app_on_demand() calls to immediately exit.
This commit is contained in:
@@ -526,6 +526,7 @@ impl EventLoop {
|
||||
&mut self,
|
||||
mut app: A,
|
||||
) -> Result<(), EventLoopError> {
|
||||
self.window_target.exit.set(false);
|
||||
loop {
|
||||
match self.pump_app_events(None, &mut app) {
|
||||
PumpStatus::Exit(0) => {
|
||||
|
||||
Reference in New Issue
Block a user