Small improvements to the behaviour of the secure environment. Fixes a rare bug when adding/removing buttons from a bar.

This commit is contained in:
Hendrik Leppkes
2009-04-16 17:04:41 +02:00
parent dc2329544f
commit fe0281fdb7
5 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -26,7 +26,6 @@ function ActionBar:ApplyConfig(config)
if not self.config.position.x then initialPosition(self) end
self:UpdateButtons()
self:UpdateSelfCast() -- also calls UpdateStates
end
-- Update the number of buttons in our bar, creating new ones if necessary
@@ -71,6 +70,7 @@ function ActionBar:UpdateButtons(numbuttons)
-- need to re-set clickthrough after creating new buttons
self:SetClickThrough()
self:UpdateSelfCast() -- update selfcast and states
end
function ActionBar:SkinChanged(...)