actionbar: skip useless active border color updates

This commit is contained in:
shagu
2024-01-06 01:56:50 +01:00
parent c6766eeca1
commit 4afd60f598
+10 -2
View File
@@ -687,10 +687,18 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function ()
-- active border
if active then
button.backdrop:SetBackdropBorderColor(cr,cg,cb,1)
if not button.border_active then
button.backdrop:SetBackdropBorderColor(cr,cg,cb,1)
button.border_active = true
end
button.active:Show()
else
button.backdrop:SetBackdropBorderColor(er,eg,eb,ea)
if button.border_active then
button.backdrop:SetBackdropBorderColor(er,eg,eb,ea)
button.border_active = nil
end
button.active:Hide()
end
end