Add the current working item to the dock icon count.

This commit is contained in:
Damiano Galassi committed 2015-11-17 13:14:27 +01:00
1 parent d8327001a0
commit 7df0dc9adb
1 file changed
+5 -3
+5 -3
View File
@@ -457,12 +457,14 @@ static void *SBQueueContex = &SBQueueContex;
* Updates the count on the app dock icon.
*/
- (void)updateDockTile {
NSUInteger count = [self.queue readyCount];
NSUInteger count = [self.queue readyCount] + ((self.queue.status == SBQueueStatusWorking) ? 1 : 0);
if (count)
if (count) {
[[NSApp dockTile] setBadgeLabel:[NSString stringWithFormat:@"%lu", (unsigned long)count]];
else
}
else {
[[NSApp dockTile] setBadgeLabel:nil];
}
}
- (void)updateUI {