From c0c8f9db64faa8f094d3d47f7c929182bc1e2724 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Fri, 3 Apr 2009 08:04:20 +0200 Subject: [PATCH] Fixes to the handling of the secure environment updates. --- ActionButton.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ActionButton.lua b/ActionButton.lua index cba7bac..fc935c4 100644 --- a/ActionButton.lua +++ b/ActionButton.lua @@ -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([[