unitframes: save old icon to force update on change

This commit is contained in:
shagu
2020-09-20 12:48:21 +02:00
parent 178313d7a1
commit 40edb70fb9
+5
View File
@@ -1236,6 +1236,11 @@ function pfUI.uf:RefreshUnit(unit, component)
unit.buffs[i].texture:SetTexture(texture)
if texture then
if unit.buffs[i].oldtexture ~= texture then
unit.buffs[i]:Hide()
end
unit.buffs[i].oldtexture = texture
unit.buffs[i]:Show()
if stacks > 1 then