mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
update NEWS; trivial changes
This commit is contained in:
parent
8e45cc27b2
commit
8d5ce92d38
2 changed files with 10 additions and 8 deletions
1
NEWS
1
NEWS
|
@ -11,6 +11,7 @@ NEWS file for Transmission <http://www.transmissionbt.com/>
|
|||
+ 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
|
||||
+ Improved accuracy for displaying the remaining disk space warning
|
||||
|
||||
1.06 (2008/02/26)
|
||||
- All Platforms:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue