Fix panic when closing pane's last item

This commit is contained in:
Antonio Scandurra 2022-01-31 10:10:15 +01:00
parent 611538f6bd
commit 7db4cad9e0

View File

@ -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>) {