From 2200f50bb744bc24c5a2ae121f82bedb07391d7d Mon Sep 17 00:00:00 2001 From: Dan Porter Date: Tue, 29 Aug 2023 18:08:43 +0100 Subject: [PATCH] Add missing UpdateButtonIcon() calls Some calls to UpdateButtonIcon() were missed from https://github.com/tgstation/tgstation/pull/63836 Fixes #22161. --- code/modules/mod/mod_actions.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mod/mod_actions.dm b/code/modules/mod/mod_actions.dm index 12272a7b0cb2..f2108b27782d 100644 --- a/code/modules/mod/mod_actions.dm +++ b/code/modules/mod/mod_actions.dm @@ -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"