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 be8bdf741c
commit 2fa5b85918
1 changed files with 1 additions and 0 deletions

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;