Add ability to hide a plugin menu entry

This commit is contained in:
emanuele-f 2019-12-20 11:03:44 +01:00
parent 5876a7362e
commit 818a21d9ee
3 changed files with 31 additions and 21 deletions

View file

@ -17,4 +17,9 @@ return {
-- The sort order in the menu. Entries with higher sort_order are shown
-- before entries with lower sort order.
sort_order = -1,
-- Conditionally show or hide the menu entry
is_shown = function()
return(true)
end,
}