Whenever a dialog created by LibDialog-1.0 is hidden (not by pressing Escape), queued dialogs in the 'delegate_queue' table will not be shown.
An easy fix would be to call _ProcessQueue() at the end of the _Dialog_OnHide() function.
local function _Dialog_OnHide(dialog)
local delegate = dialog.delegate
-- Required so lib:ActiveDialog() will return false if called from code which is called from the delegate's on_hide
_RecycleWidget(dialog, active_dialogs, dialog_heap)
if delegate.on_hide then
if #delegate_queue > 0 then
delegate = _ProcessQueue()
until not delegate
Thank you for the great library.
- 1 comment