移除原生菜单栏

This commit is contained in:
thzxx
2026-05-18 12:41:16 +08:00
parent 95eec61054
commit 1d76a81ffa
+2 -2
View File
@@ -39,8 +39,8 @@ function createWindow() {
mainWindow.show(); mainWindow.show();
}); });
// Build menu // Remove native menu bar
buildMenu(); mainWindow.setMenu(null);
mainWindow.on('closed', () => { mainWindow.on('closed', () => {
mainWindow = null; mainWindow = null;