diff --git a/src/main/windows/mainWindow.ts b/src/main/windows/mainWindow.ts index c9e83a62..19a21df2 100644 --- a/src/main/windows/mainWindow.ts +++ b/src/main/windows/mainWindow.ts @@ -124,10 +124,6 @@ function createMainWindow(options: {linuxAppIcon: string; fullscreen?: boolean}) } }); - mainWindow.once('show', () => { - mainWindow.show(); - }); - mainWindow.once('restore', () => { mainWindow.restore(); }); diff --git a/src/main/windows/windowManager.ts b/src/main/windows/windowManager.ts index 9ab1284f..a68e2741 100644 --- a/src/main/windows/windowManager.ts +++ b/src/main/windows/windowManager.ts @@ -213,7 +213,6 @@ export class WindowManager { // max retries allows the message to get to the renderer even if it is sent while the app is starting up. sendToRendererWithRetry = (maxRetries: number, channel: string, ...args: any[]) => { if (!this.mainWindow || !this.mainWindowReady) { - this.showMainWindow(); if (maxRetries > 0) { log.info(`Can't send ${channel}, will retry`); setTimeout(() => {