From 6dfb48dbd5dfaba0918bd80b25f61932ecf02dae Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Tue, 9 May 2023 12:27:07 -0700 Subject: [PATCH] Fix center items not being activated when deserialized --- crates/workspace/src/persistence/model.rs | 2 +- crates/workspace/src/workspace.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/workspace/src/persistence/model.rs b/crates/workspace/src/persistence/model.rs index e838d22f0d..a92c369e7a 100644 --- a/crates/workspace/src/persistence/model.rs +++ b/crates/workspace/src/persistence/model.rs @@ -197,7 +197,7 @@ impl SerializedPane { let pane_handle = pane_handle .upgrade(cx) .ok_or_else(|| anyhow!("pane was dropped"))?; - Pane::add_item(workspace, &pane_handle, item_handle, false, false, None, cx); + Pane::add_item(workspace, &pane_handle, item_handle, true, true, None, cx); anyhow::Ok(()) })??; } diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs index e1d4d3c8ac..86db62ab69 100644 --- a/crates/workspace/src/workspace.rs +++ b/crates/workspace/src/workspace.rs @@ -2610,7 +2610,7 @@ impl Workspace { Dock::set_dock_position( workspace, serialized_workspace.dock_position, - true, + false, cx, ); });