unread mail icon would still reappear, fixed now
This commit is contained in:
@@ -84,6 +84,14 @@ function Postal:MAIL_CLOSED()
|
||||
end
|
||||
end
|
||||
MiniMapMailFrame:Hide()
|
||||
-- There may be an UPDATE PENDING MAIL event after closing which would make the frame reappear, the following prevents that
|
||||
local t = GetTime()
|
||||
MiniMapMailFrame.Show = function()
|
||||
if GetTime() - t > 2 then
|
||||
MiniMapMailFrame.Show = Postal_MiniMapMailFrame_Show_Orig
|
||||
MiniMapMailFrame:Show()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function Postal:MAIL_SEND_SUCCESS()
|
||||
|
||||
@@ -5,6 +5,13 @@ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
|
||||
<Script file="localization.fr.lua"/>
|
||||
<Script file="localization.cn.lua"/>
|
||||
<Script file="Postal.lua"/>
|
||||
<frame>
|
||||
<Scripts>
|
||||
<OnLoad>
|
||||
Postal_MiniMapMailFrame_Show_Orig = MiniMapMailFrame.Show
|
||||
</OnLoad>
|
||||
</Scripts>
|
||||
</frame>
|
||||
<Button name="PostalButtonTemplate" virtual="true">
|
||||
<Size>
|
||||
<AbsDimension x="37" y="37"/>
|
||||
|
||||
Reference in New Issue
Block a user