The main menu module for manipulating main menu items.
Apply main menu changes.
path
string - Menu pathtemplate
array|object - Menu template
Send main-menu:add
to main process.
Send main-menu:init
to main process.
path
string - Menu path
Send main-menu:remove
to main process.
path
string - Menu pathoptions
objecticon
NativeImage - A NativeImageenabled
booleanvisible
booleanchecked
boolean - NOTE: You must set your menu-item type to 'checkbox' to make it work
Send main-menu:set
to main process.
path
string - Menu pathtemplate
array|object - Menu template
Send main-menu:update
to main process.