Skip to content

Commit fb70498

Browse files
authored
Merge pull request #858 from WowRarity/525-disabled-item-tooltips
Skip ItemRefTooltip hooks when they're globally disabled
2 parents d498bf4 + 0849ea3 commit fb70498

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Core/GUI/GameTooltipHooks.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,10 @@ local function processItem(id, tooltip)
527527
end
528528

529529
local function onTooltipSetItem(tooltip, tooltipData)
530+
if not R.db or R.db.profile.enableTooltipAdditions == false then
531+
return
532+
end
533+
530534
if tooltip ~= _G.GameTooltip and tooltip ~= _G.ItemRefTooltip then
531535
return
532536
end

0 commit comments

Comments
 (0)