Call ItemHandle::added_to_pane
when an item is added to a pane
This commit is contained in:
parent
88eb2b2163
commit
bd494037bb
2 changed files with 17 additions and 12 deletions
|
@ -1926,6 +1926,7 @@ impl Workspace {
|
|||
cx: &mut ViewContext<Self>,
|
||||
) {
|
||||
match event {
|
||||
pane::Event::AddItem { item } => item.added_to_pane(self, pane, cx),
|
||||
pane::Event::Split(direction) => {
|
||||
self.split_pane(pane, *direction, cx);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue