Implement welcome view in zed2.

Still needs styling.
This commit is contained in:
Max Brunsfeld
2023-12-11 14:48:42 -08:00
parent 050ff6b27d
commit bb5fa6bc13
2 changed files with 159 additions and 184 deletions
+2 -3
View File
@@ -47,7 +47,7 @@ use util::{
paths, ResultExt,
};
use uuid::Uuid;
use welcome::{show_welcome_experience, FIRST_OPEN};
use welcome::{show_welcome_view, FIRST_OPEN};
use workspace::{AppState, WorkspaceStore};
use zed2::{
app_menus, build_window_options, ensure_only_instance, handle_cli_connection,
@@ -366,8 +366,7 @@ async fn restore_or_create_workspace(app_state: &Arc<AppState>, mut cx: AsyncApp
.await
.log_err();
} else if matches!(KEY_VALUE_STORE.read_kvp(FIRST_OPEN), Ok(None)) {
cx.update(|cx| show_welcome_experience(app_state, cx))
.log_err();
cx.update(|cx| show_welcome_view(app_state, cx)).log_err();
} else {
cx.update(|cx| {
workspace::open_new(app_state, cx, |workspace, cx| {