From 7d65242e717f3799c3c4f8c53c3ba28fb30aacc3 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Thu, 26 Nov 2009 16:58:44 +0000 Subject: [PATCH] magnetized transfers always get a red progress bar --- macosx/TorrentCell.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/macosx/TorrentCell.m b/macosx/TorrentCell.m index 43d8d43b4..5f2cc87d6 100644 --- a/macosx/TorrentCell.m +++ b/macosx/TorrentCell.m @@ -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