Do no show the failed jobs in the notification if there if there isn't a failed one.
This commit is contained in:
1 parent
4cb6059b9e
commit
0cc5bfd0d2
1 file changed
+1
-1
@@ -100,7 +100,7 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel
|
|||||||
let notification = NSUserNotification()
|
let notification = NSUserNotification()
|
||||||
notification.title = NSLocalizedString("Queue Done", comment: "")
|
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 {
|
let completedCount = info["CompletedCount"] as? UInt {
|
||||||
notification.informativeText = "Completed: \(completedCount); Failed: \(failedCount)"
|
notification.informativeText = "Completed: \(completedCount); Failed: \(failedCount)"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user