Remove pre-iterator concepts

- No more IndexRecord/Result/dbGetPage nonsense
 - Queue is just track ids
 - i am so tired and have so much to do
This commit is contained in:
jacqueline
2023-12-07 17:00:30 +11:00
parent 009f69c929
commit 3f7f199cb9
31 changed files with 725 additions and 2328 deletions
+4 -2
View File
@@ -115,13 +115,15 @@ function browser.create(opts)
btn:onevent(lvgl.EVENT.FOCUSED, function()
screen.focused_item = this_item
if screen.last_item - 5 < this_item then
opts.iterator:next(screen.add_item)
screen.add_item(opts.iterator())
end
end)
end
for _ = 1, 8 do
opts.iterator:next(screen.add_item)
local val = opts.iterator()
if not val then break end
screen.add_item(val)
end
return screen
+1 -1
View File
@@ -34,7 +34,7 @@ return function()
end)
local indexes = database.indexes()
for id, idx in ipairs(indexes) do
for _, idx in ipairs(indexes) do
local btn = menu.list:add_btn(nil, tostring(idx))
btn:onClicked(function()
backstack.push(function()