Skip to content

Commit

Permalink
Add missing UpdateButtonIcon() calls (#22162)
Browse files Browse the repository at this point in the history
Some calls to UpdateButtonIcon() were missed from
tgstation/tgstation#63836

Fixes #22161.
  • Loading branch information
Stealthii authored Sep 5, 2023
1 parent 10141a7 commit 233edad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/mod/mod_actions.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 233edad

Please sign in to comment.