add missing image and testing code
This commit is contained in:
parent
ae2c7c8f12
commit
39e3ed4c05
|
@ -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;
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in New Issue