Fix alot of bugs with switching profiles

This commit is contained in:
Hendrik Leppkes
2008-10-15 10:02:40 +02:00
parent 9b35e84ef7
commit b549507c73
8 changed files with 20 additions and 46 deletions
-11
View File
@@ -59,17 +59,6 @@ function PetBarMod:OnEnable()
self:ReassignBindings()
end
function PetBarMod:OnDisable()
if not self.bar then return end
UnregisterStateDriver(self.bar)
self:SetAttribute("state-visibility", nil)
self.bar:Hide()
self.bar:Disable()
self:ToggleOptions()
end
function PetBarMod:ReassignBindings()
if InCombatLockdown() then return end
if not self.bar or not self.bar.buttons then return end