Remove ViewContext::is_child

This commit is contained in:
Antonio Scandurra 2023-05-03 19:09:07 +02:00
parent 5157442703
commit 9e8f852afb
4 changed files with 42 additions and 75 deletions

View file

@ -178,11 +178,7 @@ impl Dock {
pane.update(cx, |pane, cx| {
pane.set_active(false, cx);
});
let pane_id = pane.id();
cx.subscribe(&pane, move |workspace, _, event, cx| {
workspace.handle_pane_event(pane_id, event, cx);
})
.detach();
cx.subscribe(&pane, Workspace::handle_pane_event).detach();
Self {
pane,