aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2021-04-01 04:34:50 +0000
committerWarner Losh <imp@FreeBSD.org>2021-04-01 04:35:52 +0000
commit556e66b7b0763d36ddf5af98d06a1a13090bb729 (patch)
tree2954db3df5be91f7c0901b9fce8a9cc8f24c38b8
parente7ccd5b4187d15cd91697f1f4e12cf40e3ce86c3 (diff)
downloadsrc-556e66b7b0763d36ddf5af98d06a1a13090bb729.tar.gz
src-556e66b7b0763d36ddf5af98d06a1a13090bb729.zip
luaboot: visible must be a function
Visible needs to be a function. Looks like I tested the wrong thing.
-rw-r--r--stand/lua/menu.lua4
-rw-r--r--stand/lua/menu.lua.83
2 files changed, 6 insertions, 1 deletions
diff --git a/stand/lua/menu.lua b/stand/lua/menu.lua
index 8bc614378d5b..a6470e9f70ef 100644
--- a/stand/lua/menu.lua
+++ b/stand/lua/menu.lua
@@ -403,7 +403,9 @@ menu.welcome = {
},
vendor = {
entry_type = core.MENU_ENTRY,
- visible = false,
+ visible = function()
+ return false
+ end
},
},
}
diff --git a/stand/lua/menu.lua.8 b/stand/lua/menu.lua.8
index 82863791903d..38655414258f 100644
--- a/stand/lua/menu.lua.8
+++ b/stand/lua/menu.lua.8
@@ -240,6 +240,9 @@ welcome_entries.vendor = {
name = color.highlight("V") .. "endor Options",
submenu = vendor_options,
alias = {"v", "V"},
+ visible = function()
+ return true
+ end,
}
.Ed
In the above example,