|
@@ -29,7 +29,18 @@ MenuItem = (function () {
|
|
|
function MenuItem (options) {
|
|
|
var click, ref
|
|
|
const Menu = require('electron').Menu
|
|
|
- click = options.click, this.selector = options.selector, this.type = options.type, this.role = options.role, this.label = options.label, this.sublabel = options.sublabel, this.accelerator = options.accelerator, this.icon = options.icon, this.enabled = options.enabled, this.visible = options.visible, this.checked = options.checked, this.submenu = options.submenu
|
|
|
+ click = options.click
|
|
|
+ this.selector = options.selector
|
|
|
+ this.type = options.type
|
|
|
+ this.role = options.role
|
|
|
+ this.label = options.label
|
|
|
+ this.sublabel = options.sublabel
|
|
|
+ this.accelerator = options.accelerator
|
|
|
+ this.icon = options.icon
|
|
|
+ this.enabled = options.enabled
|
|
|
+ this.visible = options.visible
|
|
|
+ this.checked = options.checked
|
|
|
+ this.submenu = options.submenu
|
|
|
if ((this.submenu != null) && this.submenu.constructor !== Menu) {
|
|
|
this.submenu = Menu.buildFromTemplate(this.submenu)
|
|
|
}
|