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
+4 -1
View File
@@ -241,7 +241,7 @@ function onUpdate(self, elapsed)
end
local function updateIcon(self)
if self.BT4init and self.action then
if self.action then
if specialButtons[self.action] then
if not LBF then
self.normalTexture:SetTexCoord(0, 0, 0, 0)
@@ -260,7 +260,10 @@ local function updateIcon(self)
end
local function updateFunc(self)
local parent = self:GetParent()
if not self.BT4init or not parent.BT4BarType then return end
updateIcon(self)
if self.SecureInit and not InCombatLockdown() then
local parent = self:GetParent()
parent:SetFrameRef("upd", self)