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
+9
View File
@@ -116,6 +116,15 @@ function Bartender4.modulePrototype:ToggleOptions()
self.options.args = self:IsEnabled() and self.optionobject.table or self.disabledoptions
end
end
function Bartender4.modulePrototype:OnDisable()
if not self.bar then return end
-- assign new config table
self.bar.config = self.db.profile
self.bar:Disable()
self:ToggleOptions()
end
Bartender4:SetDefaultModulePrototype(Bartender4.modulePrototype)
local LDB = LibStub("LibDataBroker-1.1", true)