From e50bf125f98a6c15a366e130c7db54baa7642f95 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sun, 24 Apr 2022 20:38:47 +0200 Subject: [PATCH] [MIRROR] Makes PDA flashlight action button update when its flashlight toggles [MDB IGNORE] (#13067) * Makes flashlight action button update when flashlight toggles (#66434) * Makes PDA flashlight action button update when its flashlight toggles Co-authored-by: Tastyfish --- code/modules/modular_computers/computers/item/computer.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/modular_computers/computers/item/computer.dm b/code/modules/modular_computers/computers/item/computer.dm index d3c4dd4addd..a85aaca0b23 100644 --- a/code/modules/modular_computers/computers/item/computer.dm +++ b/code/modules/modular_computers/computers/item/computer.dm @@ -564,6 +564,8 @@ GLOBAL_LIST_EMPTY(TabletMessengers) // a list of all active messengers, similar else set_light(0) update_appearance() + if(light_butt) + update_action_buttons(force = TRUE) // must force if just the overlays changed. return TRUE /**