From e15647895e93ac4e39f1111053c3a09855f3ce30 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Wed, 25 Mar 2009 18:22:42 +0100 Subject: [PATCH] Refresh the state of buttons when they are newly created. --- ActionBar.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ActionBar.lua b/ActionBar.lua index beb1cfc..3739afd 100644 --- a/ActionBar.lua +++ b/ActionBar.lua @@ -68,6 +68,9 @@ function ActionBar:UpdateButtons(numbuttons) -- need to re-set clickthrough after creating new buttons self:SetClickThrough() + + -- Also need to re-apply state fun to the new buttons, just to be sure. + self:UpdateStates() end function ActionBar:SkinChanged(...)