1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

update NEWS; trivial changes

This commit is contained in:
Mitchell Livingston 2008-03-17 20:18:23 +00:00
parent 8e45cc27b2
commit 8d5ce92d38
2 changed files with 10 additions and 8 deletions

3
NEWS
View file

@ -10,7 +10,8 @@ NEWS file for Transmission <http://www.transmissionbt.com/>
+ Tracker tab in the inspector
+ Message log specifies the torrent/activity the message relates to
+ Updated images in the inspector
+ Optional display of remaining time while seeding in Minimal View
+ Optional display of remaining time while seeding in Minimal View
+ Improved accuracy for displaying the remaining disk space warning
1.06 (2008/02/26)
- All Platforms:

View file

@ -535,10 +535,12 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
if ([self allDownloaded] || ![fDefaults boolForKey: @"WarningRemainingSpace"])
return YES;
NSFileManager * fileManager = [NSFileManager defaultManager];
NSString * volumeName;
if ((volumeName = [[[NSFileManager defaultManager] componentsToDisplayForPath: [self downloadFolder]] objectAtIndex: 0]))
if ((volumeName = [[fileManager componentsToDisplayForPath: [self downloadFolder]] objectAtIndex: 0]))
{
NSDictionary * systemAttributes = [[NSFileManager defaultManager] fileSystemAttributesAtPath: [self downloadFolder]];
NSDictionary * systemAttributes = [fileManager fileSystemAttributesAtPath: [self downloadFolder]];
uint64_t remainingSpace = [[systemAttributes objectForKey: NSFileSystemFreeSize] unsignedLongLongValue], neededSpace = 0;
[self updateFileStat];
@ -552,14 +554,13 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
tr_file * file = &fInfo->files[i];
NSString * path = [[self downloadFolder] stringByAppendingPathComponent: [NSString stringWithUTF8String: file->name]];
if ([[NSFileManager defaultManager] fileExistsAtPath: path])
if ([fileManager fileExistsAtPath: path])
{
NSDictionary * fileAttributes = [NSApp isOnLeopardOrBetter]
? [[NSFileManager defaultManager] attributesOfItemAtPath: path error: NULL]
: [[NSFileManager defaultManager] fileAttributesAtPath: path traverseLink: NO];
NSDictionary * fileAttributes = [NSApp isOnLeopardOrBetter] ? [fileManager attributesOfItemAtPath: path error: NULL]
: [fileManager fileAttributesAtPath: path traverseLink: NO];
if (!fileAttributes)
{
NSLog(@"Problems getting attributes for \"%@\".", path);
NSLog(@"Problems getting file information for \"%@\".", path);
continue;
}