group: unregister old group frame events

This commit is contained in:
shagu
2019-08-02 17:25:59 +02:00
parent 5c5340104f
commit 9cf0453742
+6 -3
View File
@@ -3,10 +3,13 @@ pfUI:RegisterModule("group", "vanilla:tbc", function ()
if C.unitframes.disable == "1" then return end if C.unitframes.disable == "1" then return end
-- hide blizzard group frames -- hide blizzard group frames
local frame
for i=1, 4 do for i=1, 4 do
if _G["PartyMemberFrame" .. i] then frame = _G[string.format("PartyMemberFrame%d", i)]
_G["PartyMemberFrame" .. i]:Hide() if frame then
_G["PartyMemberFrame" .. i].Show = function () return end frame:Hide()
frame:UnregisterAllEvents()
frame.Show = function () return end
end end
end end