From 24d20783bee120fdbb5c06b7f9d0bced4f85264a Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 18 Aug 2018 17:43:22 +0200 Subject: [PATCH] unitframes: hide disabled frames on refresh --- api/unitframes.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/unitframes.lua b/api/unitframes.lua index f5f5692d..c9d09079 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -903,6 +903,11 @@ function pfUI.uf:RefreshUnit(unit, component) local component = component or "" + if unit.config.visible ~= "1" then + unit:Hide() + return + end + -- don't update scanner activity if unit.label == "target" or unit.label == "targettarget" then if pfScanActive == true then return end