bacon/tui/
dialog.rs

1use crate::*;
2
3/// the dialog that may be displayed over the rest of the UI
4#[allow(clippy::large_enum_variant)]
5pub enum Dialog {
6    None,
7    Menu(ActionMenu),
8}
9
10impl Dialog {
11    pub fn is_none(&self) -> bool {
12        matches!(self, Self::None)
13    }
14    pub fn is_some(&self) -> bool {
15        !self.is_none()
16    }
17}