mirror of
https://github.com/transmission/transmission
synced 2025-03-12 07:03:44 +00:00
--warnings
This commit is contained in:
parent
6e66ec9f01
commit
51fc9cd34f
1 changed files with 8 additions and 6 deletions
|
@ -124,13 +124,15 @@
|
||||||
|
|
||||||
[fStateField setStringValue: [torrent stateString]];
|
[fStateField setStringValue: [torrent stateString]];
|
||||||
|
|
||||||
#warning simplify
|
NSString * progressString = [NSString localizedStringWithFormat: @"%.2f%%", tr_truncd(100.0 * [torrent progress], 2)];
|
||||||
if ([torrent isFolder])
|
if ([torrent isFolder])
|
||||||
[fProgressField setStringValue: [NSString localizedStringWithFormat: NSLocalizedString(@"%.2f%% (%.2f%% selected)",
|
{
|
||||||
"Inspector -> Activity tab -> progress"), tr_truncd(100.0 * [torrent progress], 2),
|
NSString * progressSelectedString = [NSString localizedStringWithFormat:
|
||||||
tr_truncd(100.0 * [torrent progressDone], 2)]];
|
NSLocalizedString(@"%.2f%% selected", "Inspector -> Activity tab -> progress"),
|
||||||
else
|
tr_truncd(100.0 * [torrent progressDone], 2)];
|
||||||
[fProgressField setStringValue: [NSString localizedStringWithFormat: @"%.2f%%", tr_truncd(100.0 * [torrent progress], 2)]];
|
progressString = [progressString stringByAppendingFormat: @" (%@)", progressSelectedString];
|
||||||
|
}
|
||||||
|
[fProgressField setStringValue: progressString];
|
||||||
|
|
||||||
[fRatioField setStringValue: [NSString stringForRatio: [torrent ratio]]];
|
[fRatioField setStringValue: [NSString stringForRatio: [torrent ratio]]];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue