3
0
mirror of https://github.com/britzl/monarch.git synced 2025-06-27 02:17:53 +02:00

Fixed issues with missing variables

This commit is contained in:
Björn Ritzl 2022-01-27 12:15:52 +01:00
parent 17df189089
commit d57d550859
2 changed files with 2 additions and 2 deletions

View File

@ -879,7 +879,7 @@ function M.clear(cb)
local top = stack[#stack] local top = stack[#stack]
while top and top.visible do while top and top.visible do
stack[#stack] = nil stack[#stack] = nil
await(back_out, top, screen, WAIT_FOR_TRANSITION, resume) await(back_out, top, stack[#stack - 1], WAIT_FOR_TRANSITION, resume)
top = stack[#stack] top = stack[#stack]
end end

View File

@ -14,7 +14,7 @@ function M.create()
local function invoke_if_done() local function invoke_if_done()
if all_callbacks_done then if all_callbacks_done then
print("Warning: The same callback will be invoked twice from the callback tracker!", id or "") print("Warning: The same callback will be invoked twice from the callback tracker!")
end end
if callback_count == 0 and callback then if callback_count == 0 and callback then
all_callbacks_done = true all_callbacks_done = true