mirror of
https://github.com/litruv/picoGraph.git
synced 2026-07-24 02:36:04 +10:00
Merge pull request #5 from litruv/copilot/remove-menu-bar-electron
Remove menu bar from Electron application
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
const { app, BrowserWindow, ipcMain } = require("electron");
|
const { app, BrowserWindow, ipcMain, Menu } = require("electron");
|
||||||
const fs = require("node:fs/promises");
|
const fs = require("node:fs/promises");
|
||||||
const path = require("node:path");
|
const path = require("node:path");
|
||||||
|
|
||||||
@@ -84,6 +84,7 @@ function registerIpcHandlers() {
|
|||||||
*/
|
*/
|
||||||
function registerAppLifecycle() {
|
function registerAppLifecycle() {
|
||||||
app.whenReady().then(() => {
|
app.whenReady().then(() => {
|
||||||
|
Menu.setApplicationMenu(null);
|
||||||
createMainWindow();
|
createMainWindow();
|
||||||
registerIpcHandlers();
|
registerIpcHandlers();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user