fixed exit in the login dialog
This commit is contained in:
@@ -59,14 +59,13 @@ pub async fn handle_dialog_event(
|
||||
DialogPurpose::LoginSuccess => {
|
||||
match selected_index {
|
||||
0 => { // "Menu" button selected
|
||||
// Hide dialog before calling action that might change state further
|
||||
app_state.hide_dialog();
|
||||
let message = login::back_to_main(auth_state, app_state).await;
|
||||
return Some(Ok(EventOutcome::Ok(message)));
|
||||
}
|
||||
1 => { // "Exit" button selected
|
||||
1 => {
|
||||
app_state.hide_dialog();
|
||||
return Some(Ok(EventOutcome::Exit("Exiting via dialog".to_string())));
|
||||
return Some(Ok(EventOutcome::Ok("Exiting dialog".to_string())));
|
||||
}
|
||||
_ => {
|
||||
app_state.hide_dialog();
|
||||
|
||||
Reference in New Issue
Block a user