mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
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) => {
|
ipcRenderer.on(Constants.SIYUAN_SAVE_CLOSE, (event, close) => {
|
||||||
if (isWindow()) {
|
if (isWindow()) {
|
||||||
closeWindow(app);
|
closeWindow(app);
|
||||||
} else {
|
} else {
|
||||||
winOnClose(currentWindow, close);
|
winOnClose(currentWindow, close);
|
||||||
}
|
}
|
||||||
|
|
@ -521,7 +521,7 @@ ${response.data.replace("%pages", "<span class=totalPages></span>").replace("%pa
|
||||||
});
|
});
|
||||||
closeBtnElement.addEventListener("click", () => {
|
closeBtnElement.addEventListener("click", () => {
|
||||||
if (isWindow()) {
|
if (isWindow()) {
|
||||||
currentWindow.destroy();
|
closeWindow(app);
|
||||||
} else {
|
} else {
|
||||||
winOnClose(currentWindow);
|
winOnClose(currentWindow);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue