when the progress string is showing info for selected, the percent value should be for the selected amount
This commit is contained in:
parent
4a146b75c1
commit
f1d61349e4
|
@ -973,14 +973,21 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
||||||
|
|
||||||
if (![self allDownloaded])
|
if (![self allDownloaded])
|
||||||
{
|
{
|
||||||
|
float progress;
|
||||||
if ([self folder] && [fDefaults boolForKey: @"DisplayStatusProgressSelected"])
|
if ([self folder] && [fDefaults boolForKey: @"DisplayStatusProgressSelected"])
|
||||||
|
{
|
||||||
string = [NSString stringWithFormat: NSLocalizedString(@"%@ of %@ selected", "Torrent -> progress string"),
|
string = [NSString stringWithFormat: NSLocalizedString(@"%@ of %@ selected", "Torrent -> progress string"),
|
||||||
[NSString stringForFileSize: [self haveTotal]], [NSString stringForFileSize: [self totalSizeSelected]]];
|
[NSString stringForFileSize: [self haveTotal]], [NSString stringForFileSize: [self totalSizeSelected]]];
|
||||||
|
progress = 100.0 * [self progressDone];
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
string = [NSString stringWithFormat: NSLocalizedString(@"%@ of %@", "Torrent -> progress string"),
|
string = [NSString stringWithFormat: NSLocalizedString(@"%@ of %@", "Torrent -> progress string"),
|
||||||
[NSString stringForFileSize: [self haveTotal]], [NSString stringForFileSize: [self size]]];
|
[NSString stringForFileSize: [self haveTotal]], [NSString stringForFileSize: [self size]]];
|
||||||
|
progress = 100.0 * [self progress];
|
||||||
|
}
|
||||||
|
|
||||||
string = [NSString localizedStringWithFormat: @"%@ (%.2f%%)", string, 100.0 * [self progress]];
|
string = [NSString localizedStringWithFormat: @"%@ (%.2f%%)", string, progress];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue