Fix edge cases and consistency issues
This commit is contained in:
@@ -49,19 +49,6 @@ impl WizardState {
|
||||
pub fn is_last_step(&self) -> bool {
|
||||
self.current_step == self.total_steps - 1
|
||||
}
|
||||
|
||||
pub fn go_next(&mut self) {
|
||||
if self.can_go_next() {
|
||||
self.current_step += 1;
|
||||
self.visited[self.current_step] = true;
|
||||
}
|
||||
}
|
||||
|
||||
pub fn go_back(&mut self) {
|
||||
if self.can_go_back() {
|
||||
self.current_step -= 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn build_wizard_pages(state: &AppState) -> Vec<adw::NavigationPage> {
|
||||
|
||||
Reference in New Issue
Block a user