Skip to content

Commit f661f72

Browse files
committed
only show download notification when completed
1 parent 95fa39f commit f661f72

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/app/downloads.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ class Downloads {
7272
exists: true,
7373
});
7474

75-
if (config.get("notifications.downloadCompleted")) {
75+
if (state === "completed" && config.get("notifications.downloadCompleted")) {
7676
createNotification({
77-
title: `Download ${state}: ${fileName}`,
77+
title: `Downloaded: ${fileName}`,
7878
body: `Click to show the file in ${FILE_MANAGER_NAME}`,
7979
click: () => {
8080
shell.showItemInFolder(filePath);

0 commit comments

Comments
 (0)