3
0
mirror of https://github.com/britzl/monarch.git synced 2025-11-26 19:00:53 +01:00

Compare commits

..

2 Commits
3.4.4 ... 3.4.5

Author SHA1 Message Date
Björn Ritzl
9764c68475 Update callback_tracker.lua
Fixes #83
2022-01-27 12:16:43 +01:00
Björn Ritzl
d57d550859 Fixed issues with missing variables 2022-01-27 12:15:52 +01:00
2 changed files with 3 additions and 3 deletions

View File

@@ -879,7 +879,7 @@ function M.clear(cb)
local top = stack[#stack]
while top and top.visible do
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]
end

View File

@@ -14,7 +14,7 @@ function M.create()
local function invoke_if_done()
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
if callback_count == 0 and callback then
all_callbacks_done = true
@@ -52,6 +52,6 @@ end
return setmetatable(M, {
__call = function(_, ...)
return M.create(...)
return M.create()
end
})