fix issue with hiding bars on disable

This commit is contained in:
Hendrik Leppkes
2008-07-04 16:57:19 +00:00
parent caa897af46
commit b5fcb19415
6 changed files with 23 additions and 18 deletions
+2 -4
View File
@@ -34,7 +34,7 @@ function StanceBarMod:OnEnable()
self.bar:ClearSetPoint("CENTER")
self.bar:SetScript("OnEvent", StanceBar.OnEvent)
end
self.bar.disabled = nil
self.bar:Enable()
self:ToggleOptions()
self.bar:RegisterEvent("PLAYER_ENTERING_WORLD")
@@ -51,9 +51,7 @@ end
function StanceBarMod:OnDisable()
if not self.bar then return end
self.bar.disabled = true
self.bar:UnregisterAllEvents()
self.bar:Hide()
self.bar:Disable()
self:ToggleOptions()
end