lualoader: Drop name requirement for menu separators

This commit is contained in:
Kyle Evans 2018-02-21 04:14:32 +00:00
parent 20a8167664
commit dd65496a04
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329697
2 changed files with 6 additions and 6 deletions

View File

@ -175,6 +175,12 @@ drawer.menu_name_handlers = {
-- This is designed so that everything, including menu separators, may
-- have their names derived differently. The default action for entry
-- 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)
local carid = entry.carousel_id
local caridx = config.getCarouselIndex(carid)

View File

@ -113,9 +113,6 @@ menu.boot_options = {
{
entry_type = core.MENU_SEPARATOR,
name = function()
return ""
end
},
{
@ -269,9 +266,6 @@ menu.welcome = {
{
entry_type = core.MENU_SEPARATOR,
name = function()
return ""
end
},
{