From 8711c0e08e7b0a9f38b07d3e336ca087304e09a1 Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Sun, 2 Jun 2024 19:44:11 +0200 Subject: [PATCH] Fix string formatting in debug logging --- listframes.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/listframes.lua b/listframes.lua index 5a53343..e8d8665 100644 --- a/listframes.lua +++ b/listframes.lua @@ -59,10 +59,10 @@ local function redrawEntry(idx) local tw, th = frame.getSize() local xPos, yPos = entryFrame.getPosition() local xSize, ySize = entryFrame.getSize() - local visibile = (yPos+ySize-1) >= paginationPos and yPos <= th - debugLog.writeLine("[redrawEntry] idx="..idx..", yPos="..yPos..", visible="..visibile) + local visible = (yPos+ySize-1) >= paginationPos and yPos <= th + debugLog.writeLine(string.format("[redrawEntry] idx=%d, yPos=%d, visible=%t", idx, yPos, visible)) debugLog.flush() - entryFrame.setVisible(visibile) + entryFrame.setVisible(visible) end end