This repository was archived by the owner on Sep 13, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 153
Impossible to update the menu #245
Copy link
Copy link
Open
Description
Problem Description
On recent electron version, changing the menu using the example or other methods didnt work and the menu in the title bar simply disappear.
Steps to Reproduce
// in the main
const menu = new Menu()
menu.append(
new MenuItem({
label: 'File',
submenu: [
{
label: 'Import gltf/glb',
click: () => {
console.log('Open File')
},
},
{
type: 'separator',
},
{
label: 'Close',
click: () => {
win.close()
},
},
],
}),
)
Menu.setApplicationMenu(menu)
Expected Behavior
The title bar is updated with the new menu
Current Behavior
the menu disappear
Additional Information
- windows
11 - node
v20.5.0 - electron
27.0.2/ also didn't work on^26.0.0
Note:
Labels - bug
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels