Add the current working item to the dock icon count.
This commit is contained in:
1 parent
d8327001a0
commit
7df0dc9adb
1 file changed
+5
-3
@@ -457,12 +457,14 @@ static void *SBQueueContex = &SBQueueContex;
|
|||||||
* Updates the count on the app dock icon.
|
* Updates the count on the app dock icon.
|
||||||
*/
|
*/
|
||||||
- (void)updateDockTile {
|
- (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]];
|
[[NSApp dockTile] setBadgeLabel:[NSString stringWithFormat:@"%lu", (unsigned long)count]];
|
||||||
else
|
}
|
||||||
|
else {
|
||||||
[[NSApp dockTile] setBadgeLabel:nil];
|
[[NSApp dockTile] setBadgeLabel:nil];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)updateUI {
|
- (void)updateUI {
|
||||||
|
|||||||
Reference in new issue
Block a user