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 committed 2023-12-19 09:22:44 +00:00
1 parent e10609276d
commit 128f8066c3
8 files changed
+40 -37

No files matched your search

@@ -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,
};