1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-20 13:16:53 +00:00

Where's the Torrent? Transmission Support Folder

This commit is contained in:
Mitchell Livingston 2006-06-19 23:51:04 +00:00
parent b111bb7cd7
commit cb2eb173d1
3 changed files with 12 additions and 6 deletions

View file

@ -163,7 +163,7 @@
[fPiecesField setIntValue: [torrent pieceCount]];
[fHashField setStringValue: [torrent hashString]];
[fTorrentLocationField setStringValue: [[torrent torrentLocation]
[fTorrentLocationField setStringValue: [[torrent torrentLocationString]
stringByAbbreviatingWithTildeInPath]];
[fTorrentLocationField setToolTip: [torrent torrentLocation]];
[fDataLocationField setStringValue: [[torrent dataLocation]

View file

@ -91,6 +91,7 @@
- (NSString *) torrentLocation;
- (NSString *) publicTorrentLocation;
- (NSString *) torrentLocationString;
- (NSString *) dataLocation;
- (BOOL) publicTorrent;

View file

@ -360,6 +360,16 @@
return fPublicTorrentLocation;
}
- (NSString *) torrentLocationString
{
return fPrivateTorrent ? @"Transmission Support Folder" : fPublicTorrentLocation;
}
- (NSString *) dataLocation
{
return [[self downloadFolder] stringByAppendingPathComponent: [self name]];
}
- (BOOL) publicTorrent
{
return fPublicTorrent;
@ -370,11 +380,6 @@
return fPrivateTorrent;
}
- (NSString *) dataLocation
{
return [[self downloadFolder] stringByAppendingPathComponent: [self name]];
}
- (NSString *) state
{
switch( fStat->status )