From 69bbdcf8df351cc2ae6234ec3b98d9ea2ab3314a Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 19 Jan 2021 09:02:34 +0100 Subject: [PATCH] unitframes: update virtual focus target visibility --- api/unitframes.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/unitframes.lua b/api/unitframes.lua index 5e42ff2d..dc373d11 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -877,6 +877,14 @@ function pfUI.uf.OnUpdate() end end + -- handle pseudo focus target visibility + if this.unitname and this == pfFocusTarget then + if pfFocus and not pfFocus.label then + this.label = nil + return + end + end + if not this.label then return end -- update portrait on first visible frame