From d3e8be41ab5a6d36d7d17acab999731a9c7de4c0 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Thu, 24 Sep 2015 20:16:41 +0200 Subject: [PATCH] unread mail icon would still reappear, fixed now --- Postal.lua | 8 ++++++++ Postal.xml | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/Postal.lua b/Postal.lua index dfd7328..49dd141 100644 --- a/Postal.lua +++ b/Postal.lua @@ -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() diff --git a/Postal.xml b/Postal.xml index 2c3df43..f302051 100644 --- a/Postal.xml +++ b/Postal.xml @@ -5,6 +5,13 @@ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">