From 248203f4f961888010ccd250c0f4d990a1b77bca Mon Sep 17 00:00:00 2001 From: V Date: Thu, 28 Dec 2023 02:19:18 +0100 Subject: [PATCH] Update mainWindow.ts --- src/main/mainWindow.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index 73137ac..c80a25a 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -453,12 +453,13 @@ export async function createWindows() { mainWin.webContents.on("did-finish-load", () => { splash.destroy(); - // Doing this works around the gpu process crash when showing a hidden window on wayland with nvidia - mainWin!.show(); - mainWin!.hide(); - mainWin!.show(); - if (!startMinimized || isDeckGameMode) mainWin!.show(); + if (!startMinimized || isDeckGameMode) { + // Doing this works around the gpu process crash when showing a hidden window on wayland with nvidia + mainWin!.show(); + mainWin!.hide(); + mainWin!.show(); + } if (isDeckGameMode) { // always use entire display