ui: fix render with an empty nav stack (#39343)

This commit is contained in:
Adeeb Shihadeh
2026-11-28 10:53:57 -06:00
committed by firestar5683
parent 8b49048825
commit 15997d73ea
+1 -1
View File
@@ -725,7 +725,7 @@ class GuiApplication:
# Only render top widgets, and none under one covering the screen
widgets = self._nav_stack[-self._nav_stack_widgets_to_render:]
if widgets[-1].covers_screen:
if widgets and widgets[-1].covers_screen:
widgets = widgets[-1:]
for widget in widgets:
widget.render(rl.Rectangle(0, 0, self.width, self.height))