Add missing UpdateButtonIcon() calls (#22162)

Some calls to UpdateButtonIcon() were missed from
https://github.com/tgstation/tgstation/pull/63836

Fixes #22161.
This commit is contained in:
StealthCT
2023-09-04 21:57:56 -05:00
committed by GitHub
parent 10141a7d40
commit 233edad498
+2
View File
@@ -49,6 +49,7 @@
if(!ready && left_click)
ready = TRUE
button_icon_state = "activate-ready"
UpdateButtonIcon()
addtimer(CALLBACK(src, PROC_REF(reset_ready)), 3 SECONDS)
return
var/obj/item/mod/control/mod = target
@@ -59,6 +60,7 @@
/datum/action/item_action/mod/activate/proc/reset_ready()
ready = FALSE
button_icon_state = initial(button_icon_state)
UpdateButtonIcon()
/datum/action/item_action/mod/module
name = "Toggle Module"