mirror of
https://github.com/transmission/transmission
synced 2025-03-10 06:02:57 +00:00
change the (temporary) name at the cell level, not the torrent level
This commit is contained in:
parent
0f46306f77
commit
9386563e5e
3 changed files with 10 additions and 3 deletions
|
@ -127,6 +127,7 @@
|
|||
- (NSImage *) icon;
|
||||
|
||||
- (NSString *) name;
|
||||
- (NSInteger) queuePosition;
|
||||
- (BOOL) isFolder;
|
||||
- (uint64_t) size;
|
||||
- (uint64_t) sizeLeft;
|
||||
|
|
|
@ -614,8 +614,13 @@ int trashDataFile(const char * filename)
|
|||
|
||||
- (NSString *) name
|
||||
{
|
||||
return [NSString stringWithFormat: @"%d %@", fStat->queuePosition, fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString];
|
||||
//return fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString;
|
||||
return fInfo->name != NULL ? [NSString stringWithUTF8String: fInfo->name] : fHashString;
|
||||
}
|
||||
|
||||
#warning remove
|
||||
- (NSInteger) queuePosition
|
||||
{
|
||||
return fStat->queuePosition;
|
||||
}
|
||||
|
||||
- (BOOL) isFolder
|
||||
|
|
|
@ -806,7 +806,8 @@
|
|||
|
||||
- (NSAttributedString *) attributedTitle
|
||||
{
|
||||
NSString * title = [[self representedObject] name];
|
||||
NSString * title = [NSString stringWithFormat: @"%d %@", [[self representedObject] queuePosition], [[self representedObject] name]];
|
||||
//NSString * title = [[self representedObject] name];
|
||||
return [[[NSAttributedString alloc] initWithString: title attributes: fTitleAttributes] autorelease];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue