raylib: fix missing showing dialog in setup/updater (#36298)

* fix showing dialog

* here for safety
This commit is contained in:
Shane Smiskol
2025-10-10 01:40:29 -07:00
committed by GitHub
parent b521a913ab
commit cac8d3f405
3 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -126,7 +126,9 @@ def main():
if mode == ResetMode.FORMAT:
reset.start_reset()
for _ in gui_app.render():
for showing_dialog in gui_app.render():
if showing_dialog:
continue
if not reset.render(rl.Rectangle(45, 200, gui_app.width - 90, gui_app.height - 245)):
break
+3 -1
View File
@@ -423,7 +423,9 @@ def main():
try:
gui_app.init_window("Setup", 20)
setup = Setup()
for _ in gui_app.render():
for showing_dialog in gui_app.render():
if showing_dialog:
continue
setup.render(rl.Rectangle(0, 0, gui_app.width, gui_app.height))
setup.close()
except Exception as e:
+3 -1
View File
@@ -158,7 +158,9 @@ def main():
try:
gui_app.init_window("System Update")
updater = Updater(updater_path, manifest_path)
for _ in gui_app.render():
for showing_dialog in gui_app.render():
if showing_dialog:
continue
updater.render(rl.Rectangle(0, 0, gui_app.width, gui_app.height))
finally:
# Make sure we clean up even if there's an error