Fixes to the handling of the secure environment updates.
This commit is contained in:
+3
-2
@@ -90,7 +90,6 @@ function Bartender4.Button:Create(id, parent)
|
|||||||
if action and (not self:GetAttribute("buttonlock") or IsModifiedClick("PICKUPACTION")) then
|
if action and (not self:GetAttribute("buttonlock") or IsModifiedClick("PICKUPACTION")) then
|
||||||
return "action", action
|
return "action", action
|
||||||
end
|
end
|
||||||
return false
|
|
||||||
]], [[
|
]], [[
|
||||||
control:RunFor(self, self:GetAttribute("UpdateAutoAssist"))
|
control:RunFor(self, self:GetAttribute("UpdateAutoAssist"))
|
||||||
]])
|
]])
|
||||||
@@ -167,6 +166,8 @@ function Bartender4.Button:Create(id, parent)
|
|||||||
end
|
end
|
||||||
]])
|
]])
|
||||||
|
|
||||||
|
button.SecureInit = true
|
||||||
|
|
||||||
if LBF and parent.LBFGroup then
|
if LBF and parent.LBFGroup then
|
||||||
local group = parent.LBFGroup
|
local group = parent.LBFGroup
|
||||||
group:AddButton(button)
|
group:AddButton(button)
|
||||||
@@ -260,7 +261,7 @@ end
|
|||||||
|
|
||||||
local function updateFunc(self)
|
local function updateFunc(self)
|
||||||
updateIcon(self)
|
updateIcon(self)
|
||||||
if self.BT4init and not InCombatLockdown() then
|
if self.SecureInit and not InCombatLockdown() then
|
||||||
local parent = self:GetParent()
|
local parent = self:GetParent()
|
||||||
parent:SetFrameRef("upd", self)
|
parent:SetFrameRef("upd", self)
|
||||||
parent:Execute([[
|
parent:Execute([[
|
||||||
|
|||||||
Reference in New Issue
Block a user