1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-03 13:03:50 +00:00

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

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