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:
parent
b111bb7cd7
commit
cb2eb173d1
3 changed files with 12 additions and 6 deletions
|
@ -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]
|
||||
|
|
|
@ -91,6 +91,7 @@
|
|||
|
||||
- (NSString *) torrentLocation;
|
||||
- (NSString *) publicTorrentLocation;
|
||||
- (NSString *) torrentLocationString;
|
||||
- (NSString *) dataLocation;
|
||||
|
||||
- (BOOL) publicTorrent;
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue