buffer close, not kill implemented yet

This commit is contained in:
filipriec
2025-04-15 18:29:59 +02:00
parent 09068fd4e5
commit 5e482cd77b
5 changed files with 12 additions and 9 deletions

View File

@@ -111,7 +111,7 @@ impl EventHandler {
// --- DIALOG MODALITY ---
if app_state.ui.dialog.dialog_show {
if let Some(dialog_result) = dialog::handle_dialog_event(
&event, config, app_state, auth_state, login_state, register_state
&event, config, app_state, auth_state, login_state, register_state, buffer_state
).await {
return dialog_result;
}
@@ -189,7 +189,7 @@ impl EventHandler {
UiContext::Login => {
message = match index {
0 => login::save(auth_state, login_state, &mut self.auth_client, app_state).await?,
1 => login::back_to_main(login_state, app_state).await,
1 => login::back_to_main(login_state, app_state, buffer_state).await,
_ => "Invalid Login Option".to_string(),
};
}