From da31cdb6181b35cf101ac1d4edb72125676c45c3 Mon Sep 17 00:00:00 2001 From: Cherry Date: Fri, 19 Jan 2024 16:05:43 -0500 Subject: [PATCH] fix choices not showing on single-page dialogs --- pets-lib/src/dialogue/dbox/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pets-lib/src/dialogue/dbox/mod.rs b/pets-lib/src/dialogue/dbox/mod.rs index 1bbf0e83..5731846a 100644 --- a/pets-lib/src/dialogue/dbox/mod.rs +++ b/pets-lib/src/dialogue/dbox/mod.rs @@ -301,6 +301,10 @@ impl DialogBox { self.current_ix = Some(ix); self.current_page_number = 0; self.do_draw(); + + if self.is_on_or_past_last_page() { + self.run_ix_ending(); + } } pub fn is_on_or_past_last_page(&self) -> bool {