Update mainWindow.ts

This commit is contained in:
V 2023-12-28 02:19:18 +01:00 committed by GitHub
parent 8c49ee8ac0
commit 248203f4f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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