buffer logic going hard, we are killing buffers from login and register now

This commit is contained in:
filipriec
2025-04-15 18:56:11 +02:00
parent e8b585dc07
commit 921059bed8
4 changed files with 15 additions and 16 deletions

View File

@@ -93,8 +93,7 @@ pub async fn handle_dialog_event(
match selected_index {
0 => { // "OK" button for RegisterSuccess
app_state.hide_dialog();
// Go back to intro after successful registration dialog
let message = register::back_to_main(register_state, app_state).await;
let message = register::back_to_login(register_state, app_state, buffer_state).await;
return Some(Ok(EventOutcome::Ok(message)));
}
_ => { // Default for RegisterSuccess