Fix center items not being activated when deserialized

This commit is contained in:
Mikayla Maki 2023-05-09 12:27:07 -07:00
parent 8d561d6408
commit 6dfb48dbd5
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -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(())
})??;
}

View file

@ -2610,7 +2610,7 @@ impl Workspace {
Dock::set_dock_position(
workspace,
serialized_workspace.dock_position,
true,
false,
cx,
);
});