Fix nil error in OnProfileChanged related to Value/Percent display
This commit is contained in:
parent
16d3d888e7
commit
0ae2c8ff00
1 changed files with 2 additions and 2 deletions
4
Omen.lua
4
Omen.lua
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue