Prompt to save changes before quitting the app

This commit is contained in:
Max Brunsfeld 2022-06-10 17:26:33 -07:00
parent 4032e517f9
commit b9eb875bf4
2 changed files with 24 additions and 2 deletions

View file

@ -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)
}