Fix string formatting in debug logging
This commit is contained in:
parent
250378acb4
commit
8711c0e08e
|
@ -59,10 +59,10 @@ local function redrawEntry(idx)
|
||||||
local tw, th = frame.getSize()
|
local tw, th = frame.getSize()
|
||||||
local xPos, yPos = entryFrame.getPosition()
|
local xPos, yPos = entryFrame.getPosition()
|
||||||
local xSize, ySize = entryFrame.getSize()
|
local xSize, ySize = entryFrame.getSize()
|
||||||
local visibile = (yPos+ySize-1) >= paginationPos and yPos <= th
|
local visible = (yPos+ySize-1) >= paginationPos and yPos <= th
|
||||||
debugLog.writeLine("[redrawEntry] idx="..idx..", yPos="..yPos..", visible="..visibile)
|
debugLog.writeLine(string.format("[redrawEntry] idx=%d, yPos=%d, visible=%t", idx, yPos, visible))
|
||||||
debugLog.flush()
|
debugLog.flush()
|
||||||
entryFrame.setVisible(visibile)
|
entryFrame.setVisible(visible)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue