mirror of
https://github.com/britzl/monarch.git
synced 2025-11-27 11:20:55 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6fe59c92c4 | ||
|
|
286a270a1c |
@@ -354,8 +354,10 @@ local function unload(screen, force)
|
|||||||
if screen.proxy then
|
if screen.proxy then
|
||||||
log("unload() proxy", screen.id)
|
log("unload() proxy", screen.id)
|
||||||
if screen.auto_preload and not force then
|
if screen.auto_preload and not force then
|
||||||
|
if screen.loaded then
|
||||||
msg.post(screen.proxy, DISABLE)
|
msg.post(screen.proxy, DISABLE)
|
||||||
screen.loaded = false
|
screen.loaded = false
|
||||||
|
end
|
||||||
screen.preloaded = true
|
screen.preloaded = true
|
||||||
else
|
else
|
||||||
screen.wait_for = PROXY_UNLOADED
|
screen.wait_for = PROXY_UNLOADED
|
||||||
@@ -1085,7 +1087,7 @@ function M.unload(id, cb)
|
|||||||
end
|
end
|
||||||
run_coroutine(screen, when_unloaded, function()
|
run_coroutine(screen, when_unloaded, function()
|
||||||
change_context(screen)
|
change_context(screen)
|
||||||
unload(screen)
|
unload(screen, true)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
return true -- return true for legacy reasons (before queue existed)
|
return true -- return true for legacy reasons (before queue existed)
|
||||||
|
|||||||
Reference in New Issue
Block a user