//! Quit-confirm mode: the "are you sure?" overlay shown before exiting. use crate::app::runtime::actions::Action; /// Translate the user's yes/no answer on the quit-confirm overlay into an action. /// /// Return: `Action::ForceQuit` if confirmed, otherwise `Action::CloseOverlay` /// to dismiss the prompt without quitting. pub fn handle_quit_confirm(yes: bool) -> Action { if yes { Action::ForceQuit } else { Action::CloseOverlay } }