unitframes: add proper visibility condition for tbc

This commit is contained in:
shagu
2019-04-16 20:19:51 +02:00
parent 9761bbbfab
commit 9c2b842561
+1 -2
View File
@@ -772,8 +772,7 @@ function pfUI.uf:EnableScripts()
f:SetAttribute("unit", f.label .. f.id)
f:SetAttribute("type1", "target")
f:SetAttribute("type2", "showmenu")
RegisterStateDriver(f, 'visibility', "show")
RegisterStateDriver(f, 'visibility', string.format("[target=%s%s,exists] show; hide", f.label, f.id))
else
f:SetScript("OnClick", pfUI.uf.OnClick)
end