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:
bjorn3
2026-08-07 21:47:13 +02:00
committed by Jeremy Soller
parent 42366231b0
commit 4e6525b4b7
2 changed files with 2 additions and 0 deletions

View File

@@ -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) => {