summaryrefslogtreecommitdiff
path: root/plugins/MirLua/docs/examples/core.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/docs/examples/core.lua')
-rw-r--r--plugins/MirLua/docs/examples/core.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/MirLua/docs/examples/core.lua b/plugins/MirLua/docs/examples/core.lua
index e18dc0577a..5e253ea0d2 100644
--- a/plugins/MirLua/docs/examples/core.lua
+++ b/plugins/MirLua/docs/examples/core.lua
@@ -7,8 +7,5 @@ local icolib = require('m_icolib')
-- Add icon for menu items
local hRestartIcon = icolib.AddIcon('restartIcon', 'Restart')
--- Subscribe to [[Miranda/System/ModulesLoaded]] event
-m.OnModulesLoaded(function()
- -- Add menu item to main menu that allow to restart Miranda NG
- clist.AddMainMenuItem("Restart", 0, 0, hRestartIcon, "Miranda/System/Restart")
- end)
+-- Add menu item to main menu that allow to restart Miranda NG
+clist.AddMainMenuItem("Restart", 0, 0, hRestartIcon, "Miranda/System/Restart")