Changeset 941


Ignore:
Timestamp:
Sep 28, 2006, 12:48:07 AM (16 years ago)
Author:
livings124
Message:

Remove some logging and add the volume name to space warning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r940 r941  
    9090        NSString * paused;
    9191        if (!(paused = [history objectForKey: @"Paused"]) || [paused isEqualToString: @"NO"])
    92             tr_torrentStart(fHandle);
     92            [self startTransfer];
    9393    }
    9494    return self;
     
    424424            torrentRemaining = (float)[self size] * (1.0 - [self progress]);
    425425   
    426     NSLog(@"Remaining disk space: %f", remainingSpace);
    427     NSLog(@"Torrent remaining size: %f", torrentRemaining);
    428    
    429426    if (remainingSpace - torrentRemaining <= 10240.0)
    430427    {
     
    432429        [alert setMessageText: [NSString stringWithFormat: @"Not enough remaining disk space to download \"%@\" completely.",
    433430                                    [self name]]];
    434         [alert setInformativeText: @"The transfer has been paused. Clear up space on your disk to continue."];
    435        
     431        [alert setInformativeText: [NSString stringWithFormat:
     432                        @"The transfer has been paused. Clear up space on %@ to continue.",
     433                        [[[NSFileManager defaultManager] componentsToDisplayForPath: [self dataLocation]] objectAtIndex: 0]]];
    436434        [alert runModal];
    437435       
Note: See TracChangeset for help on using the changeset viewer.