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 -3
View File
@@ -32,15 +32,14 @@ function BagBarMod:OnEnable()
-- TODO: real start position
self.bar:SetPoint("CENTER")
end
self.bar.disabled = nil
self.bar:Enable()
self:ToggleOptions()
self.bar:ApplyConfig(self.db.profile)
end
function BagBarMod:OnDisable()
if not self.bar then return end
self.bar.disabled = true
self.bar:Hide()
self.bar:Disable()
self:ToggleOptions()
end