Merge branch 'main' into collab-panel
This commit is contained in:
commit
b21b17c120
2 changed files with 5 additions and 5 deletions
|
@ -432,10 +432,10 @@ 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(close) = window.update_root(&mut cx, |workspace, cx| {
|
||||
workspace.prepare_to_close(false, cx)
|
||||
if let Some(should_close) = window.update_root(&mut cx, |workspace, cx| {
|
||||
workspace.prepare_to_close(true, cx)
|
||||
}) {
|
||||
if close.await? {
|
||||
if !should_close.await? {
|
||||
return Ok(());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue