Do no show the failed jobs in the notification if there if there isn't a failed one.

This commit is contained in:
Damiano Galassi committed 2020-09-19 15:20:52 +02:00
1 parent 4cb6059b9e
commit 0cc5bfd0d2
1 file changed
+1 -1
+1 -1
View File
@@ -100,7 +100,7 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
let notification = NSUserNotification()
notification.title = NSLocalizedString("Queue Done", comment: "")
if let failedCount = info["FailedCount"] as? UInt,
if let failedCount = info["FailedCount"] as? UInt, failedCount > 0,
let completedCount = info["CompletedCount"] as? UInt {
notification.informativeText = "Completed: \(completedCount); Failed: \(failedCount)"
}