DockState<Tab>::remove_tab
may cause the whole program panic when the tab is the last tab of a window.
#206
Labels
bug
Something isn't working
Describe the bug
when use remove_tab function to remove the last tab from a window, it could not close the window like clicking on the tab.
And in the next time I call
egui_dock::DockArea::show_inside
, the program panic.To Reproduce
Steps to reproduce the behavior:
Is there any way to close the tab from rust code just like what it happens when I click the close button?
The text was updated successfully, but these errors were encountered: