mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-12 00:33:20 +01:00
[MIRROR] fix program reopening (#11545)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
1df8445415
commit
70b3bc21b5
@@ -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.
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user