Fix string formatting in debug logging

This commit is contained in:
Ben 2024-06-02 19:44:11 +02:00
parent 250378acb4
commit 8711c0e08e
Signed by: ben
GPG key ID: 0F54A7ED232D3319

View file

@ -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