Prompt to save changes before quitting the app
This commit is contained in:
parent
4032e517f9
commit
b9eb875bf4
2 changed files with 24 additions and 2 deletions
|
@ -911,7 +911,7 @@ impl Workspace {
|
|||
}))
|
||||
}
|
||||
|
||||
fn prepare_to_close(&mut self, cx: &mut ViewContext<Self>) -> Task<Result<bool>> {
|
||||
pub fn prepare_to_close(&mut self, cx: &mut ViewContext<Self>) -> Task<Result<bool>> {
|
||||
self.save_all_internal(true, cx)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue