fix PowerBar text updates

This commit is contained in:
Sumsebrum 2021-05-19 19:30:46 +02:00
parent 01d748f37e
commit de4adaec16

View File

@ -207,8 +207,13 @@ function Powerbar:UNIT_SPEC(unit, spec)
if (not powerBar or not button) then if (not powerBar or not button) then
return return
end end
local raceText = Gladdy.db.powerShowRace and button.raceLoc or ""
powerBar.raceText:SetText(spec .. " " .. button.raceLoc) if (button.spec and Gladdy.db.powerShowSpec) then
raceText = spec .. " " .. raceText
end
powerBar.raceText:SetText(raceText)
end end
function Powerbar:UNIT_POWER(unit, power, powerMax, powerType) function Powerbar:UNIT_POWER(unit, power, powerMax, powerType)