Ignore:
Timestamp:
Apr 4, 2010, 2:05:40 AM (12 years ago)
Author:
livings124
Message:

#3114 remove preference, now resume all always excludes "seeding complete" transfers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r10443 r10444  
    12151215- (void) resumeAllTorrents: (id) sender
    12161216{
    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     }
     1217    NSMutableArray * torrents = [NSMutableArray arrayWithCapacity: [fTorrents count]];
     1218   
     1219    for (Torrent * torrent in fTorrents)
     1220        if (![torrent isFinishedSeeding])
     1221            [torrents addObject: torrent];
    12251222   
    12261223    [self resumeTorrents: torrents];
     
    38583855    {
    38593856        for (Torrent * torrent in fTorrents)
    3860             if (![torrent isActive] && ![torrent waitingToStart]
    3861                 && (![torrent isFinishedSeeding] || [fDefaults boolForKey: @"ResumeAllIncludesFinished"]))
     3857            if (![torrent isActive] && ![torrent waitingToStart] && ![torrent isFinishedSeeding])
    38623858                return YES;
    38633859        return NO;
Note: See TracChangeset for help on using the changeset viewer.