bags: only create backdrop once on button creation

This commit is contained in:
shagu
2025-04-11 16:23:22 +02:00
parent 1c5efd109a
commit 20ebdaf3b5
+3 -1
View File
@@ -399,7 +399,9 @@ pfUI:RegisterModule("bags", "vanilla:tbc", function ()
bagslot.cd.pfCooldownType = "ALL"
end
CreateBackdrop(pfUI.bags[bag].slots[slot].frame, default_border)
if not pfUI.bags[bag].slots[slot].frame.backdrop then
CreateBackdrop(pfUI.bags[bag].slots[slot].frame, default_border)
end
local highlight = pfUI.bags[bag].slots[slot].frame:GetHighlightTexture()
highlight:SetTexture(.5, .5, .5, .5)