fix(electron): main window should be opened first before destroying onboard window (#5319)

The issue listed on the title will prevent main window from showing on windows.
This commit is contained in:
Peng Xiao
2023-12-19 09:22:43 +00:00
parent e10609276d
commit 128f8066c3
8 changed files with 40 additions and 37 deletions

View File

@@ -6,6 +6,7 @@ declare global {
appInfo: {
electron: boolean;
schema: string;
windowName: string;
};
}
}

View File

@@ -59,6 +59,9 @@ schema = isDev ? 'affine-dev' : schema;
export const appInfo = {
electron: true,
windowName: process.argv
.find(arg => arg.startsWith('--window-name='))
?.split('=')[1],
schema,
};