diff --git a/src/app/applyDownloadNotification.js b/src/app/applyDownloadNotification.js index 504d88ac..5b9cd477 100644 --- a/src/app/applyDownloadNotification.js +++ b/src/app/applyDownloadNotification.js @@ -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() }) }) }