Call ItemHandle::added_to_pane when an item is added to a pane

This commit is contained in:
Antonio Scandurra 2023-05-30 14:46:41 +02:00
parent 88eb2b2163
commit bd494037bb
2 changed files with 17 additions and 12 deletions

View file

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