1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-23 06:30:38 +00:00

add a warning and improve some commented out code....nothing to see here

This commit is contained in:
Mitchell Livingston 2007-10-14 14:24:34 +00:00
parent d96ed80aa2
commit 78d95148dc
2 changed files with 11 additions and 11 deletions

View file

@ -493,7 +493,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
if ([torrent isActive])
{
active++;
if (![torrent isSeeding])
if (![torrent allDownloaded])
downloading++;
}

View file

@ -268,30 +268,30 @@
if (rightWidth > 0)
{
int availableWidth = 0;
/*if (![fDefaults boolForKey: @"DisplayProgressBarAvailable"])
{
int notAvailableWidth = barRect.size.width * [torrent notAvailableDesired];
//NSLog(@"notAvailableWidth %d rightWidth %d", notAvailableWidth, rightWidth);
notAvailableWidth = MIN(notAvailableWidth, rightWidth);
availableWidth = MAX(0, (float)rightWidth - barRect.size.width * [torrent notAvailableDesired]);
if (notAvailableWidth > 0)
if (availableWidth > 0)
{
rightWidth -= notAvailableWidth;
rightWidth -= availableWidth;
NSRect notAvailableRect = barRect;
notAvailableRect.origin.x += leftWidth + rightWidth;
notAvailableRect.size.width = notAvailableWidth;
NSRect availableRect = barRect;
availableRect.origin.x += leftWidth;
availableRect.size.width = availableWidth;
if (!fYellowGradient)
fYellowGradient = [[CTGradient progressYellowGradient] retain];
[fYellowGradient fillRect: notAvailableRect angle: -90];
[fYellowGradient fillRect: availableRect angle: -90];
}
}*/
if (rightWidth > 0)
{
NSRect includeRect = barRect;
includeRect.origin.x += leftWidth;
includeRect.origin.x += leftWidth + availableWidth;
includeRect.size.width = rightWidth;
if (!fWhiteGradient)