Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Classes/ItemSlotControl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ local ItemSlotClass = newClass("ItemSlotControl", "DropDownControl", function(se
self.abyssalSocketList = { }
self.tooltipFunc = function(tooltip, mode, index, itemId)
local item = itemsTab.items[self.items[index]]
if main.popups[1] or mode == "OUT" or not item or (not self.dropped and itemsTab.selControl and itemsTab.selControl ~= self.controls.activate) then
tooltip:Clear()
-- not selControl.ListControl allows hover when All Items or Unique/Rare DB Sections are in focus
if main.popups[1] or mode == "OUT" or not item or (not self.dropped and itemsTab.selControl and itemsTab.selControl ~= self.controls.activate and not itemsTab.selControl.ListControl) then
tooltip:Clear(true)
elseif tooltip:CheckForUpdate(item, launch.devModeAlt, itemsTab.build.outputRevision) then
itemsTab:AddItemTooltip(tooltip, item, self)
end
Expand Down
5 changes: 4 additions & 1 deletion src/Classes/Tooltip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ local TooltipClass = newClass("Tooltip", function(self)
self:Clear()
end)

function TooltipClass:Clear()
function TooltipClass:Clear(clearUpdateParams)
wipeTable(self.lines)
wipeTable(self.blocks)
if self.updateParams and clearUpdateParams then
wipeTable(self.updateParams)
end
self.tooltipHeader = false
self.titleYOffset = 0
self.recipe = nil
Expand Down