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
+13
View File
@@ -471,6 +471,19 @@ function Bar:DisableVisibilityDriver()
self:Show()
end
function Bar:Enable()
if not self.disabled then return end
self.disabled = nil
end
function Bar:Disable()
if self.disabled then return end
self.disabled = true
self:UnregisterAllEvents()
self:DisableVisibilityDriver()
self:Hide()
end
--[[
Lazyness functions
]]