lualoader: Drop name requirement for menu separators
This commit is contained in:
parent
20a8167664
commit
dd65496a04
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329697
@ -175,6 +175,12 @@ drawer.menu_name_handlers = {
|
|||||||
-- This is designed so that everything, including menu separators, may
|
-- This is designed so that everything, including menu separators, may
|
||||||
-- have their names derived differently. The default action for entry
|
-- have their names derived differently. The default action for entry
|
||||||
-- types not specified here is to call and use entry.name().
|
-- types not specified here is to call and use entry.name().
|
||||||
|
[core.MENU_SEPARATOR] = function(drawing_menu, entry)
|
||||||
|
if entry.name ~= nil then
|
||||||
|
return entry.name()
|
||||||
|
end
|
||||||
|
return ""
|
||||||
|
end,
|
||||||
[core.MENU_CAROUSEL_ENTRY] = function(drawing_menu, entry)
|
[core.MENU_CAROUSEL_ENTRY] = function(drawing_menu, entry)
|
||||||
local carid = entry.carousel_id
|
local carid = entry.carousel_id
|
||||||
local caridx = config.getCarouselIndex(carid)
|
local caridx = config.getCarouselIndex(carid)
|
||||||
|
@ -113,9 +113,6 @@ menu.boot_options = {
|
|||||||
|
|
||||||
{
|
{
|
||||||
entry_type = core.MENU_SEPARATOR,
|
entry_type = core.MENU_SEPARATOR,
|
||||||
name = function()
|
|
||||||
return ""
|
|
||||||
end
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -269,9 +266,6 @@ menu.welcome = {
|
|||||||
|
|
||||||
{
|
{
|
||||||
entry_type = core.MENU_SEPARATOR,
|
entry_type = core.MENU_SEPARATOR,
|
||||||
name = function()
|
|
||||||
return ""
|
|
||||||
end
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user