We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It was aslo has wrong!
OS: Windows11
You can see the image:
// main.js const { app, BrowserWindow, Menu } = require('electron') const path = require('node:path') function createWindow () { const mainWindow = new BrowserWindow({ width: 800, height: 600, webPreferences: { preload: path.join(__dirname, 'preload.js') } }) mainWindow.loadFile('index.html') const menuTemplate = [ { label: 'test', submenu: [ { label: '000' }, { type: 'separator', visible: false }, { label: '111' }, { type: 'separator', visible: false }, { label: '222' }, { type: 'separator', visible: false }, { label: '333', visible: false }, ], } ]; const menu = Menu.buildFromTemplate(menuTemplate); Menu.setApplicationMenu(menu); } app.whenReady().then(() => { createWindow() app.on('activate', function () { if (BrowserWindow.getAllWindows().length === 0) createWindow() }) }) app.on('window-all-closed', function () { if (process.platform !== 'darwin') app.quit() })
Originally posted by @MoConWu in #41132 (comment)
The text was updated successfully, but these errors were encountered:
Test use Electron Fiddle Electron Version: v30.0.8
Sorry, something went wrong.
#41132 (comment)
No branches or pull requests
OS: Windows11
You can see the image:
Originally posted by @MoConWu in #41132 (comment)
The text was updated successfully, but these errors were encountered: