Fixes to the handling of the secure environment updates.

This commit is contained in:
Hendrik Leppkes
2009-04-03 08:04:20 +02:00
parent 4c33175e0c
commit c0c8f9db64
+3 -2
View File
@@ -90,7 +90,6 @@ function Bartender4.Button:Create(id, parent)
if action and (not self:GetAttribute("buttonlock") or IsModifiedClick("PICKUPACTION")) then
return "action", action
end
return false
]], [[
control:RunFor(self, self:GetAttribute("UpdateAutoAssist"))
]])
@@ -167,6 +166,8 @@ function Bartender4.Button:Create(id, parent)
end
]])
button.SecureInit = true
if LBF and parent.LBFGroup then
local group = parent.LBFGroup
group:AddButton(button)
@@ -260,7 +261,7 @@ end
local function updateFunc(self)
updateIcon(self)
if self.BT4init and not InCombatLockdown() then
if self.SecureInit and not InCombatLockdown() then
local parent = self:GetParent()
parent:SetFrameRef("upd", self)
parent:Execute([[