Prevent DJUI from creating and removing a panel at the same time

This commit is contained in:
MysterD 2021-08-04 23:55:46 -07:00
parent 4a3b39061f
commit 3ba77087e9

View file

@ -19,6 +19,7 @@ bool djui_panel_is_active(void) {
}
void djui_panel_add(struct DjuiBase* caller, struct DjuiBase* panelBase, struct DjuiBase* defaultElementBase) {
if (sPanelRemoving != NULL) { return; }
bool firstPanel = (sPanelList == NULL);
gDjuiPanelJoinMessageVisible = false;