[MIRROR] fix program reopening (#11545)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-08-30 15:15:40 -07:00
committed by GitHub
parent 1df8445415
commit 70b3bc21b5
2 changed files with 7 additions and 6 deletions
@@ -209,6 +209,7 @@
if(!computer.active_program)
return
var/mob/user = ui.user
computer.idle_threads.Add(computer.active_program)
program_state = PROGRAM_STATE_BACKGROUND // Should close any existing UIs
@@ -216,8 +217,8 @@
computer.update_icon()
ui.close()
if(ui.user && istype(ui.user))
computer.tgui_interact(ui.user) // Re-open the UI on this computer. It should show the main screen now.
if(istype(user))
computer.tgui_interact(user) // Re-open the UI on this computer. It should show the main screen now.