From 4afd60f598669c92ca8c4869e01fb1a819e3efab Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 6 Jan 2024 01:56:50 +0100 Subject: [PATCH] actionbar: skip useless active border color updates --- modules/actionbar.lua | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index cd6dbafb..cd86cb33 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -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