This commit is contained in:
parent
dc92bfdc8f
commit
c1e4243ab1
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue