Index children by UID

This commit is contained in:
Gabriel Tofvesson 2024-10-09 06:36:18 +02:00
parent 3960eb0cd2
commit 655ac6f4b2

View File

@ -6,6 +6,7 @@ local List = require("gfx.list")
local Event = require("gfx.event")
local Padding = require("gfx.padding")
local Container = require("gfx.container")
local Children = require("gfx.prop.children")
local CACHE_FILE = "/.storage.cache"
@ -125,7 +126,7 @@ local function itemList(groups, wBudget, hBudget, savedState, onClick, setPage,
}
local tabLine = List:new{
children = {
[Children:getId()] = {
btnPrev,
padImport,
padNext
@ -173,7 +174,7 @@ local function itemList(groups, wBudget, hBudget, savedState, onClick, setPage,
}
local list = List:new{
children = {
[Children:getId()] = {
paddedText,
countLabel
},
@ -193,7 +194,7 @@ local function itemList(groups, wBudget, hBudget, savedState, onClick, setPage,
table.insert(entries, tabLinePad)
return List:new{
children = entries,
[Children:getId()] = entries,
vertical = true
}, state
end
@ -310,7 +311,7 @@ local PAGES = {
}
local stuffContainer = Container:new{
children = {
[Children:getId()] = {
paddedTitle
},
width = state.width,