Skip to content

Commit

Permalink
Fix panic when pressing cancel on list selector page
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanDebrunner committed Dec 2, 2022
1 parent 0a13a51 commit 69f1a8e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions refbox/src/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,12 @@ impl Application for RefBoxApp {
AppState::ParameterEditor(_, _) => ConfigPage::Tournament,
AppState::KeypadPage(KeypadPage::GameNumber, _) => ConfigPage::Main,
AppState::KeypadPage(KeypadPage::TeamTimeouts(_), _) => ConfigPage::Tournament,
AppState::ParameterList(param, _) => match param {
ListableParameter::Game => ConfigPage::Main,
ListableParameter::Tournament | ListableParameter::Pool => {
ConfigPage::Tournament
}
},
_ => unreachable!(),
};

Expand Down

0 comments on commit 69f1a8e

Please sign in to comment.