mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 05:57:24 +01:00
fixes a tgui input gc issue (#25160)
This commit is contained in:
@@ -65,6 +65,8 @@
|
||||
var/start_time
|
||||
/// The lifespan of the tgui_list_input, after which the window will close and delete itself.
|
||||
var/timeout
|
||||
/// The attached timer that handles this objects timeout deletion
|
||||
var/deletion_timer
|
||||
/// Boolean field describing if the tgui_list_input was closed by the user.
|
||||
var/closed
|
||||
/// The TGUI UI state that will be returned in ui_state(). Default: always_state
|
||||
@@ -98,11 +100,12 @@
|
||||
if(timeout)
|
||||
src.timeout = timeout
|
||||
start_time = world.time
|
||||
QDEL_IN(src, timeout)
|
||||
deletion_timer = QDEL_IN(src, timeout)
|
||||
|
||||
/datum/tgui_list_input/Destroy(force)
|
||||
SStgui.close_uis(src)
|
||||
state = null
|
||||
deltimer(deletion_timer)
|
||||
return ..()
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user