unitframes: add securefunc visibility change

This commit is contained in:
shagu
2019-04-14 15:10:10 +02:00
parent c9ce19a64b
commit fff15097c9
+2
View File
@@ -772,6 +772,8 @@ function pfUI.uf:EnableScripts()
f:SetAttribute("unit", f.label .. f.id)
f:SetAttribute("type1", "target")
f:SetAttribute("type2", "showmenu")
RegisterStateDriver(f, 'visibility', "show")
else
f:SetScript("OnClick", pfUI.uf.OnClick)
end