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
|
||||
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([[
|
||||
|
||||
Reference in New Issue
Block a user