Fix disabling/enabling bars in unlock mode

This commit is contained in:
Hendrik Leppkes
2008-11-11 16:30:25 +01:00
parent 90c58593b9
commit 4189110e24
+7 -1
View File
@@ -170,7 +170,11 @@ function Bar:ApplyConfig(config)
self.config = config
end
if self.disabled then return end
self:Lock()
if Bartender4.Locked then
self:Lock()
else
self:Unlock()
end
self:LoadPosition()
self:SetConfigScale()
self:SetConfigAlpha()
@@ -372,6 +376,7 @@ end
function Bar:DisableVisibilityDriver()
UnregisterStateDriver(self, "vis")
self:SetAttribute("state-vis", "show")
self:Show()
end
function Bar:GetVisibilityOption(option, index)
@@ -403,6 +408,7 @@ end
function Bar:Disable()
if self.disabled then return end
self:Lock()
self.disabled = true
self:UnregisterAllEvents()
self:DisableVisibilityDriver()