Fix nil error in OnProfileChanged related to Value/Percent display
This commit is contained in:
@@ -589,9 +589,9 @@ function Omen:OnProfileChanged(event, database, newProfileKey)
|
||||
if db.Bar.ShowTPS then f:Show() else f:Hide() end
|
||||
end
|
||||
if db.Bar.ShowValue and db.Bar.ShowPercent then
|
||||
bar.Text2:SetText(L["Threat [%]"])
|
||||
bars[0].Text2:SetText(L["Threat [%]"])
|
||||
else
|
||||
bar.Text2:SetText(L["Threat"])
|
||||
bars[0].Text2:SetText(L["Threat"])
|
||||
end
|
||||
local texturepath = LSM:Fetch("statusbar", db.Bar.Texture)
|
||||
for i = 0, #bars do
|
||||
|
||||
Reference in New Issue
Block a user