|
@@ -72,7 +72,7 @@ const MenuItem = function (options) {
|
|
|
throw new Error(`Unknown menu item type: ${this.type}`)
|
|
|
}
|
|
|
|
|
|
- this.commandId = ++nextCommandId
|
|
|
+ this.overrideReadOnlyProperty('commandId', ++nextCommandId)
|
|
|
|
|
|
const click = options.click
|
|
|
this.click = (event, focusedWindow) => {
|