summaryrefslogtreecommitdiff
path: root/plugins/MirLua/docs/examples/menus.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/docs/examples/menus.lua')
-rw-r--r--plugins/MirLua/docs/examples/menus.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/MirLua/docs/examples/menus.lua b/plugins/MirLua/docs/examples/menus.lua
index 52ec8e3173..b3de5e5d64 100644
--- a/plugins/MirLua/docs/examples/menus.lua
+++ b/plugins/MirLua/docs/examples/menus.lua
@@ -44,12 +44,10 @@ local hMenuItem = clist.AddContactMenuItem(menuItem)
genmenu.RemoveMenuItem(hMenuItem)
--- Add root menu item
-local CMIF_ROOTHANDLE = 384
-local hRoot = clist.AddMainMenuItem({ Name = "Main menu root", Flags = CMIF_ROOTHANDLE })
+local hRoot = clist.AddMainMenuItem({ Name = "Main menu root" })
--- Add child menu item
menuItem.Name = "Main menu child wierd"
-menuItem.Flags = CMIF_ROOTHANDLE
menuItem.Service = 'Srv/SMI'
menuItem.Parent = hRoot
local hChild = clist.AddMainMenuItem(menuItem)