Ignore:
Timestamp:
Jun 30, 2006, 2:57:50 AM (16 years ago)
Author:
livings124
Message:

A little better behavior with queueing when adding seeding torrents.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r488 r489  
    339339    {
    340340        [torrent setDownloadFolder: [[openPanel filenames] objectAtIndex: 0]];
     341        [torrent update];
    341342        [self attemptToStartAuto: torrent];
    342343        [fTorrents addObject: torrent];
    343         [torrent update];
    344344       
    345345        [self torrentNumberChanged];
     
    388388
    389389            [torrent setDownloadFolder: folder];
     390            [torrent update];
    390391            [self attemptToStartAuto: torrent];
    391392            [fTorrents addObject: torrent];
    392             [torrent update];
    393393        }
    394394       
     
    11051105- (void) attemptToStartAuto: (Torrent *) torrent
    11061106{
     1107    #warning expand upon
     1108    if ([torrent progress] >= 1.0)
     1109    {
     1110        [torrent startTransfer];
     1111        return;
     1112    }
     1113
    11071114    if (![torrent waitingToStart])
    1108             return;
     1115        return;
    11091116   
    11101117    NSString * startSetting = [fDefaults stringForKey: @"StartSetting"];
     
    14371444        || action == @selector(removeDeleteTorrent:) || action == @selector(removeDeleteBoth:))
    14381445    {
    1439         BOOL warning = NO, onlyDownloading = [fDefaults boolForKey: @"CheckRemoveDownloading"],
     1446        BOOL warning = NO,
     1447            onlyDownloading = [fDefaults boolForKey: @"CheckRemoveDownloading"],
    14401448            canDelete = action != @selector(removeDeleteTorrent:) && action != @selector(removeDeleteBoth:);
    14411449        Torrent * torrent;
Note: See TracChangeset for help on using the changeset viewer.