Skip to content

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

:bug: Prevent the Windows boot window from flashing white https://github.com/siyuan-note/siyuan/issues/19096

Daniel76ed9746b6ec
diff --git a/app/electron/main.js b/app/electron/main.js
index 95c4c69f0e..bc1f3822d8 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -2050,9 +2050,19 @@ const initKernel = (workspace, port, lang, safeMode) => {
}
if (!openAsHidden) {
const currentBootWindow = bootWindow;
+ if ("win32" === process.platform) {
+ currentBootWindow.setOpacity(0);
+ }
currentBootWindow.once("ready-to-show", () => {
if (bootWindow === currentBootWindow && !currentBootWindow.isDestroyed()) {
currentBootWindow.show();
+ if ("win32" === process.platform) {
+ setImmediate(() => {
+ if (bootWindow === currentBootWindow && !currentBootWindow.isDestroyed()) {
+ currentBootWindow.setOpacity(1);
+ }
+ });
+ }
}
});
}