Skip to content

Commit

Permalink
Fix an error when using a LSM statusbar that is a file id
Browse files Browse the repository at this point in the history
Fixes #27
  • Loading branch information
nebularg committed Aug 15, 2021
1 parent 44487de commit b712eeb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ModuleHandling/BarModules.lua
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,9 @@ function BarModule:GetTexture(frame)
local texture
if LibSharedMedia then
texture = LibSharedMedia:Fetch("statusbar", layout_db.texture or frame.layout_db.bar_texture or "Blizzard")
texture = texture:gsub("%.tga$", ""):gsub("%.blp$", "")
if type(texture) == "string" then
texture = texture:gsub("%.tga$", ""):gsub("%.blp$", "")
end
end
return texture or [[Interface\TargetingFrame\UI-StatusBar]]
end
Expand Down

0 comments on commit b712eeb

Please sign in to comment.