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

#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

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