ingame/mail/keyboard/mailinbox_keyboard.lua:17 -- MAIL_INBOX_SCENE:RegisterCallback("StateChange", function(oldState, newState)
if newState == SCENE_SHOWING then
KEYBIND_STRIP:AddKeybindButtonGroup(self.selectionKeybindStripDescriptor)
if self.inboxDirty then
self:RefreshData()
end
if self.attachmentsDirty then
if self.mailId then
self:RefreshAttachmentSlots()
self:RefreshAttachmentsHeaderShown()
self:RefreshMoneyControls()
end
self.attachmentsDirty = false
end
ZO_CheckButton_SetCheckState(self.deleteOnClaimCheckButton, MAIL_MANAGER:ShouldDeleteOnClaim())
elseif newState == SCENE_HIDING then
CURRENCY_INPUT:Hide()
elseif newState == SCENE_HIDDEN then
KEYBIND_STRIP:RemoveKeybindButtonGroup(self.selectionKeybindStripDescriptor)
end
end)