mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-11 13:10:54 +00:00
Fix panic when closing pane's last item
This commit is contained in:
parent
611538f6bd
commit
7db4cad9e0
1 changed files with 2 additions and 0 deletions
|
@ -385,6 +385,8 @@ impl Pane {
|
|||
self.update_active_toolbar(cx);
|
||||
cx.emit(Event::Remove);
|
||||
}
|
||||
|
||||
cx.notify();
|
||||
}
|
||||
|
||||
fn focus_active_item(&mut self, cx: &mut ViewContext<Self>) {
|
||||
|
|
Loading…
Reference in a new issue