mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-20 19:30:49 +00:00
eqcompare: check for tooltip text before using it
This commit is contained in:
@@ -114,8 +114,9 @@ pfUI:RegisterModule("eqcompare", "vanilla", function ()
|
|||||||
for _,target in pairs(targetData) do
|
for _,target in pairs(targetData) do
|
||||||
if target and not target.processed then
|
if target and not target.processed then
|
||||||
-- we are an extra value
|
-- we are an extra value
|
||||||
if not strfind(target.widget:GetText(), "|cff88ff88") and not strfind(target.widget:GetText(), "|cffff8888") then
|
local text = target.widget:GetText()
|
||||||
target.widget:SetText(target.widget:GetText() .. "|cff88ff88 (+" .. target.value .. ")")
|
if text and not strfind(text, "|cff88ff88") and not strfind(text, "|cffff8888") then
|
||||||
|
target.widget:SetText(text .. "|cff88ff88 (+" .. target.value .. ")")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user