fix profile issues with the pet bar

This commit is contained in:
Hendrik Leppkes
2008-04-09 08:23:38 +00:00
parent 20b6c8a9ed
commit 8b4d98cce6
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ function Bartender4:Lock()
end
function Bartender4:Merge(target, source)
if not target then target = {} end
if type(target) ~= "table" then target = {} end
for k,v in pairs(source) do
if type(v) == "table" then
target[k] = self:Merge(target[k], v)
+3 -3
View File
@@ -12,7 +12,7 @@ local PetBar = setmetatable({}, {__index = ButtonBar})
local PetButtonPrototype = CreateFrame("CheckButton")
local PetButton_MT = {__index = PetButtonPrototype}
local defaults = { profile = Bartender4:Merge({
local defaults = { profile = Bartender4:Merge({
enabled = true,
scale = 1.0,
}, Bartender4.ButtonBar.defaults) }
@@ -331,8 +331,8 @@ function PetBar:OnEvent(event, arg1)
end
end
function PetBar:ApplyConfig()
ButtonBar.ApplyConfig(self)
function PetBar:ApplyConfig(config)
ButtonBar.ApplyConfig(self, config)
self:UpdateButtonLayout()
self:ForAll("Update")
self:ForAll("ApplyStyle", self.config.style)