libraries/zo_dialog/zo_dialog.lua:1434 -- dialog:RegisterForEvent(eventData.event, function(_, ...)
dialog:UnregisterForEvent(eventData.event)
local args = { ... }
-- add a delay so the dialog transition is smoother
zo_callLater(function()
ZO_Dialogs_ReleaseDialogOnButtonPress(dialog.name)
eventData.callback(data, unpack(args))
end, LOADING_DELAY_MS)
end)