set override bindings on Bar1, ShapeshiftBar, PetBar

This commit is contained in:
Hendrik Leppkes
2008-03-10 16:20:58 +00:00
parent 0c0abdbca6
commit 60fa80d401
5 changed files with 61 additions and 7 deletions
+4
View File
@@ -145,6 +145,7 @@ function ActionBar:UpdateButtons(numbuttons)
local buttons = self.buttons or {}
local updateBindings = (numbuttons > #buttons)
-- create more buttons if needed
for i = (#buttons+1), numbuttons do
buttons[i] = Bartender4.Button:Create(i, self)
@@ -166,6 +167,9 @@ function ActionBar:UpdateButtons(numbuttons)
self:UpdateButtonLayout()
self:SetGrid()
if updateBindings and self.id == "1" then
module:ReassignBindings()
end
end