WIP: Remove focus side effects from toggle dock commands
co-authored-by: max <max@zed.dev>
This commit is contained in:
parent
84f98f13c4
commit
1a23fe91b4
5 changed files with 18 additions and 70 deletions
|
@ -32,7 +32,7 @@ pub fn init(cx: &mut AppContext) {
|
|||
|
||||
pub fn show_welcome_experience(app_state: &Arc<AppState>, cx: &mut AppContext) {
|
||||
open_new(&app_state, cx, |workspace, cx| {
|
||||
workspace.toggle_dock(DockPosition::Left, false, cx);
|
||||
workspace.toggle_dock(DockPosition::Left, cx);
|
||||
let welcome_page = cx.add_view(|cx| WelcomePage::new(workspace, cx));
|
||||
workspace.add_item_to_center(Box::new(welcome_page.clone()), cx);
|
||||
cx.focus(&welcome_page);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue