Fixed DJUI panels getting stuck when spamming B button

This commit is contained in:
MysterD 2021-08-01 13:29:21 -07:00
parent a2bb578dbf
commit 7a61c61051

View file

@ -63,6 +63,7 @@ void djui_panel_add(struct DjuiBase* caller, struct DjuiBase* panelBase, struct
}
void djui_panel_back(void) {
if (sPanelRemoving != NULL) { return; }
if (sPanelList == NULL) { return; }
if (sPanelList->parent == NULL) {
if (gDjuiPanelPauseCreated) { djui_panel_shutdown(); }