Skip to content

Commit

Permalink
Classic: Fix Default to Mailbag
Browse files Browse the repository at this point in the history
  • Loading branch information
Witnesscm committed Oct 25, 2023
1 parent e870d49 commit 0c6ffdf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
9 changes: 2 additions & 7 deletions InboxMailBag.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,7 @@ end
function InboxMailbag_OnLoad(self)
-- We have things to do after everything is loaded
self:RegisterEvent("PLAYER_LOGIN")

if IsRetail then
self:RegisterEvent("PLAYER_INTERACTION_MANAGER_FRAME_SHOW")
else
self:RegisterEvent("MAIL_SHOW")
end
self:RegisterEvent("PLAYER_INTERACTION_MANAGER_FRAME_SHOW")

-- Hook our tab to play nicely with MailFrame tabs
hooksecurefunc("MailFrameTab_OnClick", InboxMailbag_Hide) -- Adopted from Sent Mail as a more general solution, and plays well with Sent Mail
Expand Down Expand Up @@ -727,7 +722,7 @@ function InboxMailbagTab_OnClick(self)
InboxMailbagFrame:Show()
PlaySound(SOUNDKIT.IG_SPELLBOOK_OPEN)

if MailFrame.SetTitle then
if IsRetail and MailFrame.SetTitle then
MailFrame:SetTitle(MB_FRAMENAME)
end
end
Expand Down
2 changes: 1 addition & 1 deletion InboxMailBag_Mainline.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 100002
## Interface: 100107
## Title: Inbox Mailbag
## Author: Jeremy Parsons
## Version: @project-version@
Expand Down
2 changes: 1 addition & 1 deletion InboxMailBag_Vanilla.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 11403
## Interface: 11404
## Title: Inbox Mailbag
## Author: Jeremy Parsons
## Version: @project-version@
Expand Down
2 changes: 1 addition & 1 deletion InboxMailBag_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30403
## Title: Inbox Mailbag
## Author: Jeremy Parsons
## Version: @project-version@
Expand Down

0 comments on commit 0c6ffdf

Please sign in to comment.