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

Compare commits

..

1 Commits
2.9.0 ... 2.9.1

Author SHA1 Message Date
Björn Ritzl
e570eac40b Don't preload an already loaded screen 2018-06-18 07:19:37 +02:00

View File

@@ -472,7 +472,7 @@ function M.preload(id, cb)
assert(screens[id], ("There is no screen registered with id %s"):format(tostring(id))) assert(screens[id], ("There is no screen registered with id %s"):format(tostring(id)))
local screen = screens[id] local screen = screens[id]
if screen.preloaded then if screen.preloaded or screen.loaded then
if cb then cb() end if cb then cb() end
return return
end end