unitframes: only scan focus on virtual unitstrings

This commit is contained in:
shagu
2021-01-19 08:57:48 +01:00
parent 21e78f148a
commit 8c2c234a1e
+2 -1
View File
@@ -840,7 +840,8 @@ function pfUI.uf.OnUpdate()
this.fullupdate = nil
end
if this == pfFocus then -- handle pseudo focus frames
-- handle pseudo focus frames
if this.unitname and this == pfFocus then
local unitname = ( this.label and UnitName(this.label) ) or ""
if pfFocusTarget then -- update focus target