mirror of
https://github.com/transmission/transmission
synced 2025-02-22 22:20:39 +00:00
add a warning and improve some commented out code....nothing to see here
This commit is contained in:
parent
d96ed80aa2
commit
78d95148dc
2 changed files with 11 additions and 11 deletions
|
@ -493,10 +493,10 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
if ([torrent isActive])
|
||||
{
|
||||
active++;
|
||||
if (![torrent isSeeding])
|
||||
if (![torrent allDownloaded])
|
||||
downloading++;
|
||||
}
|
||||
|
||||
|
||||
if ([fDefaults boolForKey: @"CheckQuitDownloading"] ? downloading > 0 : active > 0)
|
||||
{
|
||||
NSString * message = active == 1
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue