mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
#5090 Include seeding-complete transfers in badged count on Dock icon
This commit is contained in:
parent
1dafe0beef
commit
493d2824b3
2 changed files with 6 additions and 1 deletions
|
@ -65,6 +65,8 @@
|
|||
|
||||
- (void) addCompletedTorrent: (Torrent *) torrent
|
||||
{
|
||||
NSParameterAssert(torrent != nil);
|
||||
|
||||
[fHashes addObject: [torrent hashString]];
|
||||
[[NSApp dockTile] setBadgeLabel: [NSString formattedUInteger: [fHashes count]]];
|
||||
}
|
||||
|
|
|
@ -2087,7 +2087,10 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
description: [torrent name] notificationName: GROWL_SEEDING_COMPLETE
|
||||
iconData: nil priority: 0 isSticky: NO clickContext: clickContext];
|
||||
|
||||
//removing for the list calls fullUpdateUI
|
||||
if (![fWindow isMainWindow])
|
||||
[fBadger addCompletedTorrent: torrent];
|
||||
|
||||
//removing from the list calls fullUpdateUI
|
||||
if ([torrent removeWhenFinishSeeding])
|
||||
[self confirmRemoveTorrents: [[NSArray arrayWithObject: torrent] retain] deleteData: NO];
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue