inbox tooltip fix

This commit is contained in:
Manuel Simon Hirsig
2017-03-23 03:30:02 +01:00
parent 36da2c0d62
commit 5614a8fad5
+6 -3
View File
@@ -136,11 +136,14 @@ function hook.InboxFrame_Update()
orig.InboxFrame_Update()
for i = 1, 7 do
local index = (i + (InboxFrame.pageNum - 1) * 7)
local item = _G['MailItem' .. i]
item:Hide() -- hack for tooltip update
item:Show()
if index > GetInboxNumItems() then
_G['MailItem' .. i].check:Hide()
item.check:Hide()
else
_G['MailItem' .. i].check:Show()
_G['MailItem' .. i].check:SetChecked(Inbox_selectedItems[index])
item.check:Show()
item.check:SetChecked(Inbox_selectedItems[index])
end
end
Inbox_Lock()