mirror of
https://github.com/transmission/transmission
synced 2025-02-03 21:12:05 +00:00
magnetized transfers always get a red progress bar
This commit is contained in:
parent
931afc7d2a
commit
7d65242e71
1 changed files with 7 additions and 2 deletions
|
@ -629,7 +629,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (![torrent allDownloaded])
|
if (![torrent allDownloaded] && ![torrent isMagnet])
|
||||||
{
|
{
|
||||||
const CGFloat widthRemaining = round(NSWidth(barRect) * [torrent progressLeft]);
|
const CGFloat widthRemaining = round(NSWidth(barRect) * [torrent progressLeft]);
|
||||||
|
|
||||||
|
@ -653,7 +653,12 @@
|
||||||
|
|
||||||
//unwanted section
|
//unwanted section
|
||||||
if (!NSIsEmptyRect(missingRect))
|
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
|
- (void) drawPiecesBar: (NSRect) barRect
|
||||||
|
|
Loading…
Reference in a new issue