working select setting the form to true in state state.rs
This commit is contained in:
@@ -25,11 +25,9 @@ pub fn previous_option(app_state: &mut AppState) {
|
||||
}
|
||||
|
||||
pub fn select(app_state: &mut AppState) {
|
||||
if app_state.ui.show_intro {
|
||||
app_state.ui.show_intro = false;
|
||||
} else if app_state.ui.show_admin {
|
||||
app_state.ui.show_admin = false;
|
||||
}
|
||||
app_state.ui.show_form = app_state.ui.intro_state.selected_option == 0;
|
||||
app_state.ui.show_admin = app_state.ui.intro_state.selected_option == 1;
|
||||
app_state.ui.show_intro = false;
|
||||
}
|
||||
|
||||
pub fn toggle_sidebar(app_state: &mut AppState) {
|
||||
|
||||
Reference in New Issue
Block a user