finish standardizing!
This commit is contained in:
parent
4e2f1311e0
commit
42e7ee2b4a
6 changed files with 22 additions and 13 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue