Skip to content

Commit

Permalink
disallow confirming without picking a choice
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamby777 committed Aug 18, 2024
1 parent ed45ca9 commit 351672a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pets-lib/src/dialogue/dbox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl DialogBox {
.emit_signal("accept".into(), &[picked_i.to_variant()]);
}

fn _awaiting_choice(&self) -> bool {
fn awaiting_choice(&self) -> bool {
!self.choice_agent.bind().get_disabled()
}

Expand Down Expand Up @@ -346,7 +346,7 @@ impl IPanelContainer for DialogBox {
return;
}

if confirming {
if confirming && !self.awaiting_choice() {
mark_input_handled(&self.base());
self.on_confirm_next_page();
}
Expand Down

0 comments on commit 351672a

Please sign in to comment.