#3009 display an indeterminate progress indicator in the add window when waiting to start

This commit is contained in:
Mitchell Livingston 2010-03-10 03:44:30 +00:00
parent 539f0edaba
commit 272364d324
1 changed files with 12 additions and 1 deletions

View File

@ -73,6 +73,8 @@
fDeleteEnable = canToggleDelete;
fGroupValue = [torrent groupValue];
[fVerifyIndicator setUsesThreadedAnimation: YES];
}
return self;
}
@ -268,11 +270,20 @@
if ([fTorrent isChecking])
{
const BOOL waiting = [fTorrent isCheckingWaiting];
[fVerifyIndicator setIndeterminate: waiting];
if (!waiting)
[fVerifyIndicator setDoubleValue: [fTorrent checkingProgress]];
else
[fVerifyIndicator startAnimation: self];
[fVerifyIndicator setHidden: NO];
[fVerifyIndicator setDoubleValue: [fTorrent checkingProgress]];
}
else
{
[fVerifyIndicator stopAnimation: self];
[fVerifyIndicator setHidden: YES];
}
}
- (void) confirmAdd