mirror of
https://github.com/britzl/monarch.git
synced 2025-06-27 10:27:49 +02:00
Wait when reloading
This commit is contained in:
parent
05f91dd763
commit
9808c09aa1
@ -466,6 +466,11 @@ local function show_in(screen, previous_screen, reload, add_to_stack, cb)
|
|||||||
if reload and screen.loaded then
|
if reload and screen.loaded then
|
||||||
log("show_in() reloading", screen.id)
|
log("show_in() reloading", screen.id)
|
||||||
unload(screen, reload)
|
unload(screen, reload)
|
||||||
|
-- we need to wait here in case the unloaded screen contained any screens
|
||||||
|
-- if this is the case we need to let these sub-screens have their final()
|
||||||
|
-- functions called so that they have time to call unregister()
|
||||||
|
cowait(0)
|
||||||
|
cowait(0)
|
||||||
end
|
end
|
||||||
load(screen)
|
load(screen)
|
||||||
if add_to_stack then
|
if add_to_stack then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user