Fixes HTML interfaces (R&D console) not updating when buttons on their UI are pressed (#22742)

changes:
- bugfix: "Fixes HTML interfaces not updating when a user hits a UI
button."
This commit is contained in:
FenodyreeAv
2026-06-22 17:35:34 +00:00
committed by GitHub
parent 8c1657b514
commit babc31f94e
2 changed files with 11 additions and 0 deletions
+6
View File
@@ -223,11 +223,17 @@
if(M.client)
if(SStgui.try_update_ui(M, src, ui))
is_in_use = 1
else
if(M.machine == src)
src.attack_hand(M) //Needed for legacy HTML interfaces, not yet updated to TGUI.
if(istype(usr, /mob/living/silicon/ai) || istype(usr, /mob/living/silicon/robot))
if(!(usr in nearby))
if(usr.client && usr.machine==src) // && M.machine == src is omitted because if we triggered this by using the dialog, it doesn't matter if our machine changed in between triggering it and this - the dialog is probably still supposed to refresh.
is_in_use = 1
ui = SStgui.try_update_ui(usr, src, ui)
if(!ui)
src.attack_ai(usr) //Needed for legacy HTML interfaces, not yet updated to TGUI.
in_use = is_in_use
/obj/proc/updateDialog()