(title: &str, message: &str)
| 19 | |
| 20 | impl ConfirmDialog { |
| 21 | pub fn new(title: &str, message: &str) -> Self { |
| 22 | Self { |
| 23 | title: title.to_string(), |
| 24 | message: message.to_string(), |
| 25 | confirm_text: "Confirm".to_string(), |
| 26 | cancel_text: "Cancel".to_string(), |
| 27 | focused: false, |
| 28 | open: false, |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | pub fn open(&mut self) { |
| 33 | self.open = true; |
nothing calls this directly
no outgoing calls
no test coverage detected