diff --git a/app/electron/main.ts b/app/electron/main.ts index aeac6823a4..0991c753bb 100644 --- a/app/electron/main.ts +++ b/app/electron/main.ts @@ -989,7 +989,9 @@ function startElecron() { }); mainWindow.webContents.on('dom-ready', () => { - mainWindow?.webContents.send('currentMenu', getDefaultAppMenu()); + const defaultMenu = getDefaultAppMenu(); + const currentMenu = JSON.parse(JSON.stringify(defaultMenu)); + mainWindow?.webContents.send('currentMenu', currentMenu); }); mainWindow.on('closed', () => {