-- name = "Apps menu" -- type = "drawer" -- testing = "true" function on_drawer_open() apps_tab = apps:apps() -- Do not update if the list of the apps is not changed if #apps_tab ~= #drawer:items() then update() end end function update() names_tab = map(function(it) return it.name end, apps_tab) icons_tab = map(function(it) return it.icon end, apps_tab) drawer:show_list(names_tab, icons_tab, nil, true) end function on_click(idx) apps:launch(apps_tab[idx]) end