Presenter View: closing its window also closes its slide grid

Otherwise presenter_grid stayed true and held auto-advance and rehearsal for the
rest of the show (CodeRabbit).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-23 17:13:31 -04:00
co-authored by Claude Opus 5.5
parent 3a917bb4e0
commit c7a1423105
+2
View File
@@ -1906,6 +1906,8 @@ fn presenter_window(ctx: &egui::Context, show: &mut Show, doc: &Presentation, no
});
if ui.input(|i| i.viewport().close_requested()) {
show.presenter = false;
// A grid left open in the closed window would hold auto-advance for the rest of the show.
show.presenter_grid = false;
}
},
);