Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Joseph T. Lyons
b72d5715a3 v0.99.x stable 2023-08-16 14:22:24 -04:00
Joseph T. Lyons
51e34bbd92 zed 0.99.1 2023-08-09 16:54:55 -04:00
Max Brunsfeld
27d28c930f Restore shutdown behavior (#2837)
Deals with https://github.com/zed-industries/community/issues/1898

Restores original close behavior from
https://github.com/zed-industries/zed/pull/2832/files#diff-89af0b4072205c53b518aa977d6be48997e1a51fa4dbf06c7ddd1fec99fc510eL444
(load diff for the last file, zed.rs)

and adds a better name for the variable.

Release Notes:

- Fixes `cmd-q` not working
2023-08-09 16:54:17 -04:00
Joseph T. Lyons
cff094f364 v0.99.x preview 2023-08-09 12:30:16 -04:00
5 changed files with 8 additions and 8 deletions

2
Cargo.lock generated
View file

@ -9860,7 +9860,7 @@ dependencies = [
[[package]]
name = "zed"
version = "0.99.0"
version = "0.99.1"
dependencies = [
"activity_indicator",
"ai",

View file

@ -4067,10 +4067,10 @@ pub fn restart(_: &Restart, cx: &mut 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| {
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(());
}
}

View file

@ -3,7 +3,7 @@ authors = ["Nathan Sobo <nathansobo@gmail.com>"]
description = "The fast, collaborative code editor."
edition = "2021"
name = "zed"
version = "0.99.0"
version = "0.99.1"
publish = false
[lib]

View file

@ -1 +1 @@
dev
stable

View file

@ -433,10 +433,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(());
}
}