1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

don't show the availability bar if checking

This commit is contained in:
Mitchell Livingston 2008-01-05 23:36:25 +00:00
parent fac74ffd7b
commit b1b28349ad

View file

@ -346,7 +346,8 @@
if (rightWidth > 0)
{
if ([torrent isActive] && ![torrent allDownloaded] && [fDefaults boolForKey: @"DisplayProgressBarAvailable"])
if ([torrent isActive] && ![torrent allDownloaded] && ![torrent isChecking]
&& [fDefaults boolForKey: @"DisplayProgressBarAvailable"])
{
int notAvailableWidth = MIN(ceil(barRect.size.width * [torrent notAvailableDesired]), rightWidth);
rightWidth -= notAvailableWidth;