Add tab context menu

This commit is contained in:
Joseph Lyons 2023-04-07 19:36:10 -04:00
parent 035189a2a1
commit 67cb046298
3 changed files with 311 additions and 58 deletions

View file

@ -402,7 +402,7 @@ impl<T: Item> ItemHandle for ViewHandle<T> {
for item_event in T::to_item_events(event).into_iter() {
match item_event {
ItemEvent::CloseItem => {
Pane::close_item(workspace, pane, item.id(), cx)
Pane::close_item_by_id(workspace, pane, item.id(), cx)
.detach_and_log_err(cx);
return;
}