Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Show the boot window after its first render https://github.com/siyuan-note/siyuan/issues/19096

Daniel17c65e72e745
diff --git a/app/electron/main.js b/app/electron/main.js
index 4d3ea6166d..b1e02753af 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -1581,11 +1581,17 @@ const initKernel = (workspace, port, lang, safeMode) => {
resolve(false);
return;
}
+ if (!openAsHidden) {
+ const currentBootWindow = bootWindow;
+ currentBootWindow.once("ready-to-show", () => {
+ if (bootWindow === currentBootWindow && !currentBootWindow.isDestroyed()) {
+ currentBootWindow.show();
+ }
+ });
+ }
loadBootWindow();
if (openAsHidden) {
bootWindow.minimize();
- } else {
- bootWindow.show();
}
const currentKernelPort = kernelPort;
const cmds = ["serve", "--port", currentKernelPort, "--wd", appDir, "--attach-ui"];