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:
parent
539f0edaba
commit
272364d324
1 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue