fixed incorrect render behavior on quick supervisor reconnects

This commit is contained in:
Mikayla Fischler 2024-04-12 00:18:35 -04:00
parent 878c3b92e1
commit c243d064ef

View File

@ -272,6 +272,13 @@ function threads.thread__render(smem)
if msg.qtype == mqueue.TYPE.COMMAND then
-- received a command
if msg.message == MQ__RENDER_CMD.START_MAIN_UI then
-- stop the UI if it was already started
-- this may occur on a quick supervisor disconnect -> connect
if renderer.ui_ready() then
log_render("closing main UI before executing new request to start")
renderer.close_ui()
end
-- start up the main UI
log_render("starting main UI...")