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 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue