Ignore:
Timestamp:
Apr 4, 2010, 1:35:51 AM (12 years ago)
Author:
livings124
Message:

#3114 add option to transfers->management "Resume All includes seeding-complete transfers"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r10424 r10443  
    12151215- (void) resumeAllTorrents: (id) sender
    12161216{
    1217     [self resumeTorrents: fTorrents];
     1217    NSMutableArray * torrents = [NSMutableArray arrayWithArray: fTorrents];
     1218   
     1219    if (![fDefaults boolForKey: @"ResumeAllIncludesFinished"])
     1220    {
     1221        for (NSInteger i = [torrents count]-1; i >=0; --i)
     1222            if ([[torrents objectAtIndex: i] isFinishedSeeding])
     1223                [torrents removeObjectAtIndex: i];
     1224    }
     1225   
     1226    [self resumeTorrents: torrents];
    12181227}
    12191228
     
    38493858    {
    38503859        for (Torrent * torrent in fTorrents)
    3851             if (![torrent isActive] && ![torrent waitingToStart])
     3860            if (![torrent isActive] && ![torrent waitingToStart]
     3861                && (![torrent isFinishedSeeding] || [fDefaults boolForKey: @"ResumeAllIncludesFinished"]))
    38523862                return YES;
    38533863        return NO;
Note: See TracChangeset for help on using the changeset viewer.