Skip to content

Commit d59aba8

Browse files
committed
Fix tooltips flickering on Button tooltips (Fixes #240)
1 parent ae9b094 commit d59aba8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

TipHooker.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
local handler
44
local enabled = false
55

6+
local runningHandler = {}
7+
68
local RunHandler = function(tooltip)
7-
if enabled then
9+
if enabled and not runningHandler[tooltip] then
10+
runningHandler[tooltip] = true
811
handler(tooltip)
12+
runningHandler[tooltip] = nil
913
end
1014
end
1115

@@ -25,6 +29,7 @@ end
2529
local directUpdateTypes = {
2630
["GameTooltip"] = true,
2731
["CheckButton"] = true,
32+
["Button"] = true,
2833
}
2934

3035
local function HandleTooltipSetItem(tooltip)

0 commit comments

Comments
 (0)