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:
+4
-2
@@ -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
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user