Add manual removal code to remove_panes
This commit is contained in:
parent
9b2d3fcd48
commit
49335d017a
1 changed files with 8 additions and 1 deletions
|
@ -2459,7 +2459,14 @@ impl Workspace {
|
||||||
self.remove_panes(child.clone(), cx)
|
self.remove_panes(child.clone(), cx)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Member::Pane(pane) => self.remove_pane(pane.clone(), cx),
|
Member::Pane(pane) => {
|
||||||
|
self.panes.retain(|p| p != &pane);
|
||||||
|
cx.focus(self.panes.last().unwrap());
|
||||||
|
if self.last_active_center_pane == Some(pane.downgrade()) {
|
||||||
|
self.last_active_center_pane = None;
|
||||||
|
}
|
||||||
|
cx.notify();
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue