3
0
mirror of https://github.com/britzl/monarch.git synced 2025-09-27 18:12:22 +02:00

Guard DEPRECATED transition_id overwriting transition_url (#100)

This commit is contained in:
Pete Garcin
2023-12-27 10:52:36 -04:00
committed by GitHub
parent ce5ca26b6c
commit 43e847dacc

View File

@@ -520,7 +520,9 @@ local function load(screen)
msg.post(screen.proxy, MSG_ENABLE) msg.post(screen.proxy, MSG_ENABLE)
elseif screen.factory then elseif screen.factory then
screen.factory_ids = collectionfactory.create(screen.factory) screen.factory_ids = collectionfactory.create(screen.factory)
screen.transition_url = screen.factory_ids[screen.transition_id] if screen.transition_id then
screen.transition_url = screen.factory_ids[screen.transition_id]
end
screen.focus_url = screen.factory_ids[screen.focus_id] screen.focus_url = screen.factory_ids[screen.focus_id]
end end
screen.loaded = true screen.loaded = true