fix: mailbox error

This commit is contained in:
Vati
2026-04-06 19:01:48 +04:00
parent 4b67cb2fbe
commit 7eaedbf115
7 changed files with 31 additions and 3315 deletions
+2 -2
View File
@@ -379,7 +379,7 @@ local function Guda_MailboxCharacterMenu_Initialize()
local info = {}
info.text = addon.Modules.Utils:ColorText(char.name, r, g, b)
info.func = function() MailboxFrame:ShowCharacter(charFullName) end
local currentViewChar = MailboxFrame:GetCurrentViewChar and MailboxFrame:GetCurrentViewChar()
local currentViewChar = MailboxFrame.GetCurrentViewChar and MailboxFrame:GetCurrentViewChar()
info.checked = (currentViewChar == charFullName or (not currentViewChar and charFullName == currentPlayerFullName))
UIDropDownMenu_AddButton(info)
end
@@ -400,7 +400,7 @@ local function Guda_MailboxCharacterMenu_Initialize()
local info = {}
info.text = addon.Modules.Utils:ColorText(char.name, r, g, b)
info.func = function() MailboxFrame:ShowCharacter(charFullName) end
local currentViewChar = MailboxFrame:GetCurrentViewChar and MailboxFrame:GetCurrentViewChar()
local currentViewChar = MailboxFrame.GetCurrentViewChar and MailboxFrame:GetCurrentViewChar()
info.checked = (currentViewChar == charFullName)
UIDropDownMenu_AddButton(info)
end