luaboot: visible must be a function
Visible needs to be a function. Looks like I tested the wrong thing.
This commit is contained in:
parent
e7ccd5b418
commit
556e66b7b0
@ -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
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user