Skip to content

Commit

Permalink
fixed: confirm close not appearing
Browse files Browse the repository at this point in the history
  • Loading branch information
mienaiyami committed Jul 15, 2023
1 parent f18e9f4 commit 157196b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,6 @@ const registerListener = () => {
const closeEvent = (e: Electron.Event) => {
e.preventDefault();
// log.log(currentWindowIndex, { windowsCont });
window.webContents.send("recordPageNumber");
// log.log("sent page save request");
// window.webContents.executeJavaScript("window.app.deleteDirOnClose").then((link: string) => {
// if (link && fs.existsSync(link))
Expand All @@ -488,6 +487,7 @@ const registerListener = () => {
if (res === 0) {
return;
}
window.webContents.send("recordPageNumber");
const dirToDlt = deleteDirsOnClose[currentWindowIndex];
if (dirToDlt)
try {
Expand Down

0 comments on commit 157196b

Please sign in to comment.