Changeset 13571


Ignore:
Timestamp:
Oct 15, 2012, 2:12:44 AM (9 years ago)
Author:
livings124
Message:

#5090 Include seeding-complete transfers in badged count on Dock icon

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Badger.m

    r13255 r13571  
    6666- (void) addCompletedTorrent: (Torrent *) torrent
    6767{
     68    NSParameterAssert(torrent != nil);
     69   
    6870    [fHashes addObject: [torrent hashString]];
    6971    [[NSApp dockTile] setBadgeLabel: [NSString formattedUInteger: [fHashes count]]];
  • trunk/macosx/Controller.m

    r13564 r13571  
    20882088                                   iconData: nil priority: 0 isSticky: NO clickContext: clickContext];
    20892089   
    2090     //removing for the list calls fullUpdateUI
     2090    if (![fWindow isMainWindow])
     2091        [fBadger addCompletedTorrent: torrent];
     2092   
     2093    //removing from the list calls fullUpdateUI
    20912094    if ([torrent removeWhenFinishSeeding])
    20922095        [self confirmRemoveTorrents: [[NSArray arrayWithObject: torrent] retain] deleteData: NO];
Note: See TracChangeset for help on using the changeset viewer.