1 2 3 4 5 6 7
use crate::primitives::dialog::Dialog; impl<'a> Dialog<'a> { pub fn get_selected_button_text(&self) -> Option<&str> { self.buttons.get(self.selected_button).copied() } }