Remove application menu
This commit is contained in:
parent
961857ff23
commit
aa7710650f
3
main.js
3
main.js
@ -1,6 +1,6 @@
|
|||||||
console.log('Hello world')
|
console.log('Hello world')
|
||||||
|
|
||||||
const { app, BrowserWindow, ipcMain } = require('electron')
|
const { app, BrowserWindow, ipcMain, Menu } = require('electron')
|
||||||
const path = require('node:path')
|
const path = require('node:path')
|
||||||
|
|
||||||
app.on('window-all-closed', windowsClosed)
|
app.on('window-all-closed', windowsClosed)
|
||||||
@ -16,6 +16,7 @@ function createWindow() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
win.loadFile('index.html')
|
win.loadFile('index.html')
|
||||||
|
Menu.setApplicationMenu(null)
|
||||||
}
|
}
|
||||||
|
|
||||||
function appReady() {
|
function appReady() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user