mail icon fix

This commit is contained in:
Manuel Simon Hirsig
2018-01-02 13:22:37 +01:00
parent c6919faabc
commit 1aa33d0db6
+1 -7
View File
@@ -45,13 +45,6 @@ function MAIL_CLOSED()
Inbox_Abort()
SendMail_sending = false
SendMail_Clear()
-- Hides the minimap unread mail button if there are no unread mail on closing the mailbox.
-- Does not scan past the first 50 items since only the first 50 are viewable.
for i = 1, GetInboxNumItems() do
if not ({GetInboxHeaderInfo(i)})[9] then return end
end
MiniMapMailFrame:Hide()
end
do
@@ -273,6 +266,7 @@ end
do
local TakeInboxMoney, TakeInboxItem, DeleteInboxItem = TakeInboxMoney, TakeInboxItem, DeleteInboxItem -- hack to prevent beancounter from deleting mail
function Inbox_Open(i)
GetInboxText(i)
TakeInboxMoney(i)
TakeInboxItem(i)
DeleteInboxItem(i)