actually apply settings when the addon loads

This commit is contained in:
Hendrik Leppkes
2007-12-09 09:56:23 +00:00
parent 80348a88b3
commit de8edf73ba
4 changed files with 11 additions and 2 deletions
+7 -1
View File
@@ -1,4 +1,4 @@
--[[ $Id: Bartender4.lua 56386 2007-12-01 14:21:40Z nevcairiel $ ]]
--[[ $Id$ ]]
local Bar = Bartender4.Bar.prototype
local ActionBar = setmetatable({}, {__index = Bar})
@@ -60,6 +60,12 @@ function ActionBar:UpdateButtons(numbuttons)
self:UpdateButtonLayout()
end
ActionBar.SetButtons = ActionBar.UpdateButtons
function ActionBar:GetButtons()
return self.config.Buttons
end
-- align the buttons and correct the size of the bar overlay frame
function ActionBar:UpdateButtonLayout()
local numbuttons = self.config.Buttons