Partially roll back refactoring
This commit is contained in:
parent
ba1c350dad
commit
4c92172cca
3 changed files with 8 additions and 15 deletions
|
@ -438,7 +438,7 @@ fn quit(_: &Quit, cx: &mut gpui::AppContext) {
|
|||
// If the user cancels any save prompt, then keep the app open.
|
||||
for window in workspace_windows {
|
||||
if let Some(should_close) = window.update_root(&mut cx, |workspace, cx| {
|
||||
workspace.prepare_to_close(true, workspace::SaveBehavior::PromptOnWrite, cx)
|
||||
workspace.prepare_to_close(true, cx)
|
||||
}) {
|
||||
if !should_close.await? {
|
||||
return Ok(());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue