Store AnyViewHandle inside ViewHandle and Deref to it
This commit is contained in:
parent
59fb4b3d29
commit
82a713fd1d
32 changed files with 154 additions and 204 deletions
|
@ -651,7 +651,7 @@ impl Item for TerminalView {
|
|||
project.create_terminal(cwd, window_id, cx)
|
||||
})?;
|
||||
|
||||
Ok(cx.add_view(pane, |cx| TerminalView::new(terminal, workspace_id, cx)))
|
||||
Ok(cx.add_view(&pane, |cx| TerminalView::new(terminal, workspace_id, cx)))
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue