mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
magnetized transfers always get a red progress bar
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user