luaboot: visible must be a function

Visible needs to be a function. Looks like I tested the wrong thing.
This commit is contained in:
Warner Losh 2021-03-31 22:34:50 -06:00
parent e7ccd5b418
commit 556e66b7b0
2 changed files with 6 additions and 1 deletions

View File

@ -403,7 +403,9 @@ menu.welcome = {
}, },
vendor = { vendor = {
entry_type = core.MENU_ENTRY, entry_type = core.MENU_ENTRY,
visible = false, visible = function()
return false
end
}, },
}, },
} }

View File

@ -240,6 +240,9 @@ welcome_entries.vendor = {
name = color.highlight("V") .. "endor Options", name = color.highlight("V") .. "endor Options",
submenu = vendor_options, submenu = vendor_options,
alias = {"v", "V"}, alias = {"v", "V"},
visible = function()
return true
end,
} }
.Ed .Ed
In the above example, In the above example,