From c1e4243ab1d1a213b626927426ec63f6975ed088 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 16 Sep 2023 19:41:49 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9128 --- app/src/boot/onGetConfig.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/boot/onGetConfig.ts b/app/src/boot/onGetConfig.ts index 5a8c358f2..5feae88ba 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", "").replace("%pa }); closeBtnElement.addEventListener("click", () => { if (isWindow()) { - currentWindow.destroy(); + closeWindow(app); } else { winOnClose(currentWindow); }