Open hanrongliao opened 2 months ago
const menuTemp = { label: 'File', submenu: [ { label: 'Save', click: () => { console.log('saved'); }, }, { type: 'separator' }, { role: 'quit' }, ], } const menu = Menu.buildFromTemplate([menuTemp]) // .... Menu.setApplicationMenu(menu); attachTitlebarToWindow(mainWindow);
I writed this code in "main.js", but menu bar does not show
I writed this code in "main.js", but menu bar does not show