fixed exit in the login dialog
This commit is contained in:
@@ -72,16 +72,12 @@ impl EventHandler {
|
||||
app_state.update_mode(current_mode);
|
||||
|
||||
// --- DIALOG MODALITY ---
|
||||
// If a dialog is showing, intercept and handle ONLY dialog inputs.
|
||||
if app_state.ui.dialog.dialog_show {
|
||||
// Pass event handling to the dedicated dialog handler, including necessary state
|
||||
if let Some(dialog_result) = dialog::handle_dialog_event(
|
||||
&event, config, app_state, auth_state, &mut self.auth_client
|
||||
).await {
|
||||
// If the dialog handler consumed the event, return its result
|
||||
return dialog_result;
|
||||
}
|
||||
// Fallback if dialog handler returned None or event wasn't handled
|
||||
return Ok(EventOutcome::Ok(String::new()));
|
||||
}
|
||||
// --- END DIALOG MODALITY CHECK ---
|
||||
|
||||
Reference in New Issue
Block a user