summaryrefslogtreecommitdiff
path: root/plugins/MirLua/docs/examples/popup.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/docs/examples/popup.lua')
-rw-r--r--plugins/MirLua/docs/examples/popup.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirLua/docs/examples/popup.lua b/plugins/MirLua/docs/examples/popup.lua
index 395f650267..4d48ace8a3 100644
--- a/plugins/MirLua/docs/examples/popup.lua
+++ b/plugins/MirLua/docs/examples/popup.lua
@@ -1,7 +1,7 @@
--- include m_popup module
local popup = require('m_popup')
---- include m_genmenu module
-local genmenu = require('m_genmenu')
+--- include m_clist module
+local clist = require('m_clist')
m.CreateServiceFunction('MirLua/ShowPopup', function()
local popupData =
@@ -15,5 +15,5 @@ m.CreateServiceFunction('MirLua/ShowPopup', function()
end)
m.OnModulesLoaded(function()
- genmenu.AddMainMenuItem({ Name = "Show lua popup", Service = 'MirLua/ShowPopup' })
+ clist.AddMainMenuItem({ Name = "Show lua popup", Service = 'MirLua/ShowPopup' })
end)