mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 12:32:06 +08:00
raylib: fix missing showing dialog in setup/updater (#36298)
* fix showing dialog * here for safety
This commit is contained in:
+3
-1
@@ -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
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user