buffer for form fix performed
This commit is contained in:
@@ -13,10 +13,10 @@ pub fn handle_intro_selection(
|
|||||||
index: usize,
|
index: usize,
|
||||||
) {
|
) {
|
||||||
let target_view = match index {
|
let target_view = match index {
|
||||||
0 => buffer_state.history.iter().rev()
|
0 => {
|
||||||
.find(|v| matches!(v, AppView::Form(_)))
|
let form_name = app_state.selected_profile.clone().unwrap_or_else(|| "Data Form".to_string());
|
||||||
.cloned()
|
AppView::Form(form_name)
|
||||||
.unwrap_or_else(|| AppView::Form("Default".to_string())),
|
}
|
||||||
1 => AppView::Admin,
|
1 => AppView::Admin,
|
||||||
2 => AppView::Login,
|
2 => AppView::Login,
|
||||||
3 => AppView::Register,
|
3 => AppView::Register,
|
||||||
|
|||||||
Reference in New Issue
Block a user