Commit 4e2811ae authored by Simpy's avatar Simpy 🐹

lazy fix: update all the UF font strings when tank/assist loads

parent 3510a154
......@@ -477,9 +477,9 @@ function UF:Update_FontString(object)
end
function UF:Update_FontStrings()
local stringFont = LSM:Fetch("font", self.db.font)
for font in pairs(UF.fontstrings) do
font:FontTemplate(stringFont, self.db.fontSize, self.db.fontOutline)
local font, size, outline = LSM:Fetch("font", self.db.font), self.db.fontSize, self.db.fontOutline
for obj in pairs(UF.fontstrings) do
obj:FontTemplate(font, size, outline)
end
end
......@@ -1486,8 +1486,10 @@ function UF:AfterStyleCallback()
-- even when they are disabled. this makes sure the update happens after so its proper.
if self.unitframeType == "tank" or self.unitframeType == "tanktarget" then
UF:Update_TankFrames(self, E.db.unitframe.units.tank)
UF:Update_FontStrings()
elseif self.unitframeType == "assist" or self.unitframeType == "assisttarget" then
UF:Update_AssistFrames(self, E.db.unitframe.units.assist)
UF:Update_FontStrings()
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment