equip-compare: always check for shift key

This commit is contained in:
shagu
2021-10-11 01:58:24 +02:00
parent 91d0a8497f
commit ce0c6fb050
+6 -2
View File
@@ -101,9 +101,13 @@ local slots = {
module.enable = function(self)
local compare = CreateFrame( "Frame" , nil, GameTooltip )
compare:SetScript("OnShow", function()
compare:SetScript("OnUpdate", function()
-- abort if shift is not pressed
if not IsShiftKeyDown() then return end
if not IsShiftKeyDown() then
ShoppingTooltip1:Hide()
ShoppingTooltip2:Hide()
return
end
for i=1,GameTooltip:NumLines() do
local tmpText = _G[GameTooltip:GetName() .. "TextLeft"..i]