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
+3 -5
View File
@@ -42,7 +42,7 @@ function PetBarMod:OnEnable()
self.bar:SetAttribute("unit", "pet")
end
self.bar.disabled = nil
self.bar:Enable()
RegisterUnitWatch(self.bar, false)
@@ -66,12 +66,10 @@ end
function PetBarMod:OnDisable()
if not self.bar then return end
self.bar.disabled = true
UnregisterUnitWatch(self.bar)
self.bar:UnregisterAllEvents()
self.bar:Hide()
self.bar:Disable()
self:ToggleOptions()
end