setApplicationMenu before app ready

This commit is contained in:
pompurin404 2024-09-10 21:20:29 +08:00
parent 729db6e5eb
commit 323c0e12d0
No known key found for this signature in database

View File

@ -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<void> {
}
export async function createWindow(): Promise<void> {
Menu.setApplicationMenu(null)
const { useWindowFrame = false } = await getAppConfig()
const mainWindowState = windowStateKeeper({
defaultWidth: 800,