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

* fix showing dialog

* here for safety
pull/36301/head
Shane Smiskol 5 days ago committed by GitHub
parent b521a913ab
commit cac8d3f405
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      system/ui/reset.py
  2. 4
      system/ui/setup.py
  3. 4
      system/ui/updater.py

@ -126,7 +126,9 @@ def main():
if mode == ResetMode.FORMAT: if mode == ResetMode.FORMAT:
reset.start_reset() 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)): if not reset.render(rl.Rectangle(45, 200, gui_app.width - 90, gui_app.height - 245)):
break break

@ -423,7 +423,9 @@ def main():
try: try:
gui_app.init_window("Setup", 20) gui_app.init_window("Setup", 20)
setup = Setup() 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.render(rl.Rectangle(0, 0, gui_app.width, gui_app.height))
setup.close() setup.close()
except Exception as e: except Exception as e:

@ -158,7 +158,9 @@ def main():
try: try:
gui_app.init_window("System Update") gui_app.init_window("System Update")
updater = Updater(updater_path, manifest_path) 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)) updater.render(rl.Rectangle(0, 0, gui_app.width, gui_app.height))
finally: finally:
# Make sure we clean up even if there's an error # Make sure we clean up even if there's an error

Loading…
Cancel
Save