unitframes: update virtual focus target visibility

This commit is contained in:
shagu
2021-01-19 09:02:34 +01:00
parent 8c2c234a1e
commit 69bbdcf8df
+8
View File
@@ -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