From 10ea229fbf80893e7e53549a044fc5cc1fef80dd Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Tue, 8 Oct 2024 18:17:54 +0200 Subject: [PATCH] Clear monitor on page change --- itemcontroller.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/itemcontroller.lua b/itemcontroller.lua index b417fd6..3372616 100644 --- a/itemcontroller.lua +++ b/itemcontroller.lua @@ -162,7 +162,7 @@ local function itemList(groups, wBudget, hBudget, savedState, onClick, setPage) end local tabLinePad = Padding:new{ - top = hBudget - (entryEnd - entryStart) - 1, + top = hBudget - (entryEnd - entryStart), element = tabLine } @@ -183,7 +183,7 @@ local function updatePageRender(state, pages) if changingPage then state.pageState = nil end - + state.monitor.clear() state._pageRender = pages[state.currentPage](state) end end