Partially roll back refactoring

This commit is contained in:
Conrad Irwin 2023-09-08 16:49:50 -06:00
parent ba1c350dad
commit 4c92172cca
3 changed files with 8 additions and 15 deletions

View file

@ -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(());