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); }