mirror of
https://github.com/britzl/monarch.git
synced 2025-09-27 18:12:22 +02:00
Log when monarch is busy
This commit is contained in:
@@ -399,6 +399,7 @@ end
|
|||||||
function M.show(id, options, data, cb)
|
function M.show(id, options, data, cb)
|
||||||
assert(id, "You must provide a screen id")
|
assert(id, "You must provide a screen id")
|
||||||
if M.is_busy() then
|
if M.is_busy() then
|
||||||
|
log("show() monarch is busy, ignoring request")
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -457,6 +458,7 @@ end
|
|||||||
-- @return true if successfully going back, false if busy performing another operation
|
-- @return true if successfully going back, false if busy performing another operation
|
||||||
function M.back(data, cb)
|
function M.back(data, cb)
|
||||||
if M.is_busy() then
|
if M.is_busy() then
|
||||||
|
log("back() monarch is busy, ignoring request")
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user