mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
[MIRROR] Fixes tgui_open_uis tracking [MDB IGNORE] (#22700)
* Fixes tgui_open_uis tracking (#77101) Fixes https://github.com/tgstation/tgstation/issues/77097 This breaks uis for everyone with fancy-tgui off and in cases where the window is closed by external action (byond closing it) which is pretty bad. * Fixes tgui_open_uis tracking --------- Co-authored-by: AnturK <AnturK@users.noreply.github.com>
This commit is contained in:
@@ -285,6 +285,7 @@ SUBSYSTEM_DEF(tgui)
|
||||
* required ui datum/tgui The UI to be added.
|
||||
*/
|
||||
/datum/controller/subsystem/tgui/proc/on_open(datum/tgui/ui)
|
||||
ui.user?.tgui_open_uis |= ui
|
||||
LAZYOR(ui.src_object.open_uis, ui)
|
||||
all_uis |= ui
|
||||
|
||||
|
||||
Reference in New Issue
Block a user