Queue dummy event on refresh

This commit is contained in:
Gabriel Tofvesson 2024-10-09 01:02:08 +02:00
parent e1fa432b64
commit 8ecf32dae9

View File

@ -203,6 +203,7 @@ local function updatePageRender(state, pages)
state.monitor.clear()
state._pageRender = pages[state.currentPage](state)
os.queueEvent("dummy_event")
else
state.changingPage = false
end
@ -305,7 +306,6 @@ function CONTROLLER_STATE:itemTransaction(transact)
unlock()
end
os.queueEvent("dummy_event")
while not CONTROLLER_STATE.exit do
updatePageRender(CONTROLLER_STATE, PAGES)
CONTROLLER_STATE._pageRender()