Fixed HarmonyPower Hide Blizzard option generating errors

This commit is contained in:
Parnic
2016-07-22 11:45:35 -05:00
parent 715f9584fb
commit f8c7875501

View File

@ -91,15 +91,23 @@ function HarmonyPower.prototype:GetRuneTexture(rune)
end
function HarmonyPower.prototype:ShowBlizz()
MonkHarmonyBar:Show()
local frame = MonkHarmonyBarFrame
if frame == nil then
frame = MonkHarmonyBar
end
MonkHarmonyBar:GetScript("OnLoad")(MonkHarmonyBar)
frame:Show()
frame:GetScript("OnLoad")(frame)
end
function HarmonyPower.prototype:HideBlizz()
MonkHarmonyBar:Hide()
local frame = MonkHarmonyBarFrame
if frame == nil then
frame = MonkHarmonyBar
end
MonkHarmonyBar:UnregisterAllEvents()
frame:Hide()
frame:UnregisterAllEvents()
end
-- Load us up