mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
Add manual removal code to remove_panes
This commit is contained in:
parent
9b2d3fcd48
commit
49335d017a
@ -2459,7 +2459,14 @@ impl Workspace {
|
||||
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…
Reference in New Issue
Block a user