add missing image and testing code

This commit is contained in:
Mitchell Livingston 2008-01-17 06:57:51 +00:00
parent ae2c7c8f12
commit 39e3ed4c05
2 changed files with 1 additions and 3 deletions

View File

@ -75,11 +75,9 @@
tr_torrentRates(fLib, &downloadRate, &uploadRate); tr_torrentRates(fLib, &downloadRate, &uploadRate);
BOOL upload = checkUpload && uploadRate >= 0.1; BOOL upload = checkUpload && uploadRate >= 0.1;
upload = YES;
if (upload) if (upload)
[self badge: [NSImage imageNamed: @"UploadBadge.png"] string: [NSString stringForSpeedAbbrev: uploadRate] atHeight: 0.0]; [self badge: [NSImage imageNamed: @"UploadBadge.png"] string: [NSString stringForSpeedAbbrev: uploadRate] atHeight: 0.0];
//if (checkDownload && downloadRate >= 0.1) if (checkDownload && downloadRate >= 0.1)
if (YES)
{ {
//download rate above upload rate //download rate above upload rate
float bottom = upload ? [[NSImage imageNamed: @"UploadBadge.png"] size].height + BETWEEN_PADDING : 0.0; float bottom = upload ? [[NSImage imageNamed: @"UploadBadge.png"] size].height + BETWEEN_PADDING : 0.0;

BIN
macosx/Images/QuitBadge.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB