Skip to content

Commit

Permalink
Offline Bags tooltips will work again
Browse files Browse the repository at this point in the history
Fix #60 (unintended side effect #11).
  • Loading branch information
veechs committed Jan 21, 2025
1 parent c963311 commit 9905281
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Components/Inventory.Ui.ItemButton.lua
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ function Inventory:ItemButton_OnEnter(itemButton)
-- (itemSlotTooltipFunction is the function name, not the actual function
-- see declaration in Inventory.lua for reasoning.)
if
not self.editMode -- Not calling in Edit Mode so we cut out some hooks and have a little more control.
self.online -- Definitely have to be online for this.
and not self.editMode -- Not calling in Edit Mode so we cut out some hooks and have a little more control.
and not truncateTooltip -- Also, we don't need extra stuff if we're just going to truncate anyway.
and self.itemSlotTooltipFunction
and type(_G[self.itemSlotTooltipFunction]) == "function"
Expand Down

0 comments on commit 9905281

Please sign in to comment.