Skip to content

Commit

Permalink
fix(app): do not show notification when download was canceled
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <[email protected]>
  • Loading branch information
ShGKme committed Oct 23, 2024
1 parent 99d502f commit 8b18958
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/applyDownloadNotification.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ export function applyDownloadNotification(browserWindow) {
notification.on('click', () => {
shell.showItemInFolder(pathToFile)
})
} else {
} else if (state === 'interrupted') {
notification = new Notification({
title: 'Download Failed',
body: `Something went wrong with the download of '${base}'.`,
})
}

notification.show()
notification?.show()
})
})
}

0 comments on commit 8b18958

Please sign in to comment.