magnetized transfers always get a red progress bar

This commit is contained in:
Mitchell Livingston 2009-11-26 16:58:44 +00:00
parent 931afc7d2a
commit 7d65242e71
1 changed files with 7 additions and 2 deletions

View File

@ -629,7 +629,7 @@
}
}
if (![torrent allDownloaded])
if (![torrent allDownloaded] && ![torrent isMagnet])
{
const CGFloat widthRemaining = round(NSWidth(barRect) * [torrent progressLeft]);
@ -653,7 +653,12 @@
//unwanted section
if (!NSIsEmptyRect(missingRect))
[[ProgressGradients progressLightGrayGradient] drawInRect: missingRect angle: 90];
{
if (![torrent isMagnet])
[[ProgressGradients progressLightGrayGradient] drawInRect: missingRect angle: 90];
else
[[ProgressGradients progressRedGradient] drawInRect: missingRect angle: 90];
}
}
- (void) drawPiecesBar: (NSRect) barRect