fix cli welcome screen (#13474)

Release Notes:

- Fixed first launch via cli

---------

Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
Conrad Irwin 2024-06-24 12:55:30 -06:00 committed by GitHub
parent c6c5907693
commit 8949460bd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 34 additions and 18 deletions

View file

@ -398,7 +398,8 @@ pub async fn handle_cli_connection(
}
}
} else if matches!(KEY_VALUE_STORE.read_kvp(FIRST_OPEN), Ok(None)) {
cx.update(|cx| show_welcome_view(app_state, cx)).log_err();
cx.update(|cx| show_welcome_view(app_state, cx).detach())
.log_err();
} else {
cx.update(|cx| {
workspace::open_new(app_state, cx, |workspace, cx| {