Remove ViewContext::is_child
This commit is contained in:
parent
5157442703
commit
9e8f852afb
4 changed files with 42 additions and 75 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue