Skip to content

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

:art: fix https://github.com/siyuan-note/siyuan/issues/9128

Vanessac1e4243ab1d1
diff --git a/app/src/boot/onGetConfig.ts b/app/src/boot/onGetConfig.ts
index 5a8c358f2d..5feae88ba3 100644
--- a/app/src/boot/onGetConfig.ts
+++ b/app/src/boot/onGetConfig.ts
@@ -301,7 +301,7 @@ export const initWindow = (app: App) => {
}
ipcRenderer.on(Constants.SIYUAN_SAVE_CLOSE, (event, close) => {
if (isWindow()) {
- closeWindow(app);
+ closeWindow(app);
} else {
winOnClose(currentWindow, close);
}
@@ -521,7 +521,7 @@ ${response.data.replace("%pages", "<span class=totalPages></span>").replace("%pa
});
closeBtnElement.addEventListener("click", () => {
if (isWindow()) {
- currentWindow.destroy();
+ closeWindow(app);
} else {
winOnClose(currentWindow);
}