Update mainWindow.ts
This commit is contained in:
parent
8c49ee8ac0
commit
248203f4f9
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
Reference in a new issue