1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-04 18:48:06 +00:00

show the full tracker address in a tooltip

This commit is contained in:
Mitchell Livingston 2009-09-28 02:55:16 +00:00
parent 298af84273
commit df7ae11485
3 changed files with 13 additions and 0 deletions

View file

@ -1128,6 +1128,13 @@ typedef enum
return [components componentsJoinedByString: @"\n"];
}
else if (tableView == fTrackerTable)
{
id node = [fTrackers objectAtIndex: row];
if (![node isKindOfClass: [NSNumber class]])
return [(TrackerNode *)node fullAnnounceAddress];
}
return nil;
}

View file

@ -33,6 +33,7 @@
- (id) initWithTrackerStat: (tr_tracker_stat *) stat;
- (NSString *) host;
- (NSString *) fullAnnounceAddress;
- (NSString *) lastAnnounceStatusString;
- (NSString *) nextAnnounceStatusString;

View file

@ -49,6 +49,11 @@
return [NSString stringWithUTF8String: fStat.host];
}
- (NSString *) fullAnnounceAddress
{
return [NSString stringWithUTF8String: fStat.announce];
}
#warning consider "isActive"
- (NSString *) lastAnnounceStatusString
{