Set window's edited = true when there are unsaved changes

This commit is contained in:
Antonio Scandurra 2022-06-23 10:59:50 +02:00
parent a6262b97ff
commit ca8ddcdeec
5 changed files with 38 additions and 0 deletions

View file

@ -97,6 +97,7 @@ pub trait Window: WindowContext {
fn prompt(&self, level: PromptLevel, msg: &str, answers: &[&str]) -> oneshot::Receiver<usize>;
fn activate(&self);
fn set_title(&mut self, title: &str);
fn set_edited(&mut self, edited: bool);
}
pub trait WindowContext {