Skip to content

Commit c73df6c

Browse files
committed
1 parent 2108651 commit c73df6c

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

src/Classes/ItemSlotControl.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ local ItemSlotClass = newClass("ItemSlotControl", "DropDownControl", function(se
5959
self.tooltipFunc = function(tooltip, mode, index, itemId)
6060
local item = itemsTab.items[self.items[index]]
6161
if main.popups[1] or mode == "OUT" or not item or (not self.dropped and itemsTab.selControl and itemsTab.selControl ~= self.controls.activate) then
62-
tooltip:Clear()
62+
tooltip:Clear(true)
6363
elseif tooltip:CheckForUpdate(item, launch.devModeAlt, itemsTab.build.outputRevision) then
6464
itemsTab:AddItemTooltip(tooltip, item, self)
6565
end
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
diff a/src/Classes/ItemSlotControl.lua b/src/Classes/ItemSlotControl.lua (rejected hunks)
2+
@@ -46,7 +46,8 @@ local ItemSlotClass = newClass("ItemSlotControl", "DropDownControl", function(se
3+
self.abyssalSocketList = { }
4+
self.tooltipFunc = function(tooltip, mode, index, itemId)
5+
local item = itemsTab.items[self.items[index]]
6+
- if main.popups[1] or mode == "OUT" or not item or (not self.dropped and itemsTab.selControl and itemsTab.selControl ~= self.controls.activate) then
7+
+ -- not selControl.ListControl allows hover when All Items or Unique/Rare DB Sections are in focus
8+
+ 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
9+
tooltip:Clear(true)
10+
elseif tooltip:CheckForUpdate(item, launch.devModeAlt, itemsTab.build.outputRevision) then
11+
itemsTab:AddItemTooltip(tooltip, item, self)

src/Classes/Tooltip.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ local TooltipClass = newClass("Tooltip", function(self)
2121
self:Clear()
2222
end)
2323

24-
function TooltipClass:Clear()
24+
function TooltipClass:Clear(clearUpdateParams)
2525
wipeTable(self.lines)
2626
wipeTable(self.blocks)
27+
if self.updateParams and clearUpdateParams then
28+
wipeTable(self.updateParams)
29+
end
2730
self.tooltipHeader = false
2831
self.titleYOffset = 0
2932
self.recipe = nil

0 commit comments

Comments
 (0)