From 323c0e12d0e24bedfd4deef3bd33f8588faa5ad7 Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Tue, 10 Sep 2024 21:20:29 +0800 Subject: [PATCH] setApplicationMenu before app ready --- src/main/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/index.ts b/src/main/index.ts index f959e08..e7a420f 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -48,6 +48,7 @@ if (!gotTheLock) { app.quit() } +Menu.setApplicationMenu(null) const initPromise = init() app.on('second-instance', async (_event, commandline) => { @@ -143,7 +144,6 @@ async function handleDeepLink(url: string): Promise { } export async function createWindow(): Promise { - Menu.setApplicationMenu(null) const { useWindowFrame = false } = await getAppConfig() const mainWindowState = windowStateKeeper({ defaultWidth: 800,