Skip to content

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

:bug: Hiding the main interface and then opening it from the taskbar icon will cause the interface to hang Fix https://github.com/siyuan-note/siyuan/issues/8489

Daniela2ff4d753b5e
diff --git a/app/electron/main.js b/app/electron/main.js
index e431b27e6e..30a1402c72 100644
--- a/app/electron/main.js
+++ b/app/electron/main.js
@@ -307,10 +307,7 @@ const boot = () => {
if (currentWindow.isMinimized()) {
currentWindow.restore();
}
- if (!currentWindow.isVisible()) {
- currentWindow.show();
- }
- currentWindow.focus();
+ currentWindow.show();
setTimeout(() => { // 等待界面js执行完毕
writeLog(siyuanOpenURL);
currentWindow.webContents.send("siyuan-openurl", siyuanOpenURL);
@@ -389,10 +386,7 @@ const showWindow = (wnd) => {
if (wnd.isMinimized()) {
wnd.restore();
}
- if (!wnd.isVisible()) {
- wnd.show();
- }
- wnd.focus();
+ wnd.show();
};
const initKernel = (workspace, port, lang) => {