mirror of
https://github.com/transmission/transmission
synced 2024-12-23 08:13:27 +00:00
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
1 changed files with 8 additions and 1 deletions
|
@ -973,14 +973,21 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
|
|||
|
||||
if (![self allDownloaded])
|
||||
{
|
||||
float progress;
|
||||
if ([self folder] && [fDefaults boolForKey: @"DisplayStatusProgressSelected"])
|
||||
{
|
||||
string = [NSString stringWithFormat: NSLocalizedString(@"%@ of %@ selected", "Torrent -> progress string"),
|
||||
[NSString stringForFileSize: [self haveTotal]], [NSString stringForFileSize: [self totalSizeSelected]]];
|
||||
progress = 100.0 * [self progressDone];
|
||||
}
|
||||
else
|
||||
{
|
||||
string = [NSString stringWithFormat: NSLocalizedString(@"%@ of %@", "Torrent -> progress string"),
|
||||
[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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue