Skip to content

Commit

Permalink
fix choices not showing on single-page dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamby777 committed Jan 19, 2024
1 parent 38f0064 commit da31cdb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pets-lib/src/dialogue/dbox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit da31cdb

Please sign in to comment.