Fix a bug where the terminal panel's items wouldn't be hooked up properly to workspace actions
This commit is contained in:
parent
5012d618e6
commit
be881369fa
3 changed files with 12 additions and 2 deletions
|
@ -221,6 +221,16 @@ impl TerminalPanel {
|
|||
pane::Event::ZoomIn => cx.emit(Event::ZoomIn),
|
||||
pane::Event::ZoomOut => cx.emit(Event::ZoomOut),
|
||||
pane::Event::Focus => cx.emit(Event::Focus),
|
||||
|
||||
pane::Event::AddItem { item } => {
|
||||
if let Some(workspace) = self.workspace.upgrade(cx) {
|
||||
let pane = self.pane.clone();
|
||||
workspace.update(cx, |workspace, cx| {
|
||||
item.added_to_pane(workspace,pane, cx)
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue