Fix bug with wrong view ids being passed

This commit is contained in:
Mikayla Maki 2023-03-09 12:00:58 -08:00
parent 9187863d0e
commit 4eb75f058f
2 changed files with 19 additions and 6 deletions

View file

@ -181,6 +181,7 @@ pub struct Dock {
impl Dock {
pub fn new(
workspace_id: usize,
default_item_factory: DockDefaultItemFactory,
background_actions: BackgroundActions,
cx: &mut ViewContext<Workspace>,
@ -189,7 +190,7 @@ impl Dock {
let pane = cx.add_view(|cx| {
Pane::new(
cx.handle().id(),
workspace_id,
Some(position.anchor()),
background_actions,
cx,