From 05c4dbdbcb5e7156825d9c39c99df17f0f605eca Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Wed, 9 Oct 2024 04:29:51 +0200 Subject: [PATCH] Move parent assignment to renderDefault --- itemcontroller.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itemcontroller.lua b/itemcontroller.lua index 7032fff..982ec00 100644 --- a/itemcontroller.lua +++ b/itemcontroller.lua @@ -212,6 +212,7 @@ local function updatePageRender(state, pages) end local function renderDefault(state, rootElement) + rootElement:setParent(state.monitor) return function() local event = {os.pullEvent()} local handled = rootElement:handleEvent(event) @@ -281,7 +282,6 @@ local PAGES = { end ) pageState.listState = listState - listResult:setParent(state.monitor) return renderDefault(state, listResult) end,