mirror of
https://github.com/transmission/transmission
synced 2025-03-09 21:54:09 +00:00
add progress of checking
This commit is contained in:
parent
dd55805012
commit
c9f9a07415
3 changed files with 15 additions and 6 deletions
Binary file not shown.
|
@ -357,7 +357,8 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
|||
break;
|
||||
|
||||
case TR_STATUS_CHECK:
|
||||
tempString = [NSLocalizedString(@"Checking existing data", "Torrent -> status string") stringByAppendingEllipsis];
|
||||
tempString = [NSString stringWithFormat: NSLocalizedString(@"Checking existing data (%.2f%%)",
|
||||
"Torrent -> status string"), 100.0 * fStat->recheckProgress];
|
||||
|
||||
[statusString setString: tempString];
|
||||
[shortStatusString setString: tempString];
|
||||
|
@ -990,7 +991,12 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
|||
break;
|
||||
|
||||
case TR_STATUS_CHECK:
|
||||
return [NSLocalizedString(@"Checking existing data", "Torrent -> status string") stringByAppendingEllipsis];
|
||||
return [NSString stringWithFormat: NSLocalizedString(@"Checking existing data (%.2f%%)",
|
||||
"Torrent -> status string"), 100.0 * fStat->recheckProgress];
|
||||
break;
|
||||
|
||||
case TR_STATUS_CHECK_WAIT:
|
||||
return [NSLocalizedString(@"Waiting to check existing data", "Torrent -> status string") stringByAppendingEllipsis];
|
||||
break;
|
||||
|
||||
case TR_STATUS_DOWNLOAD:
|
||||
|
|
|
@ -248,8 +248,12 @@
|
|||
torrent = [fTorrents objectAtIndex: i];
|
||||
rect = [self pauseRectForRow: i];
|
||||
|
||||
if ([torrent isActive] && ![torrent isChecking])
|
||||
image = NSPointInRect(fClickPoint, rect) ? fPauseOnIcon : fPauseOffIcon;
|
||||
image = nil;
|
||||
if ([torrent isActive])
|
||||
{
|
||||
if (![torrent isChecking])
|
||||
image = NSPointInRect(fClickPoint, rect) ? fPauseOnIcon : fPauseOffIcon;
|
||||
}
|
||||
else if ([torrent isPaused])
|
||||
{
|
||||
if ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask && [fDefaults boolForKey: @"Queue"])
|
||||
|
@ -259,8 +263,7 @@
|
|||
else
|
||||
image = NSPointInRect(fClickPoint, rect) ? fResumeOnIcon : fResumeOffIcon;
|
||||
}
|
||||
else
|
||||
image = nil;
|
||||
else;
|
||||
|
||||
if (image)
|
||||
[image compositeToPoint: NSMakePoint(rect.origin.x, NSMaxY(rect)) operation: NSCompositeSourceOver];
|
||||
|
|
Loading…
Add table
Reference in a new issue