Set window's edited = true
when there are unsaved changes
This commit is contained in:
parent
a6262b97ff
commit
ca8ddcdeec
5 changed files with 38 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue