in the inspector, don't show the percent complete for selected when it's not multi-file

This commit is contained in:
Mitchell Livingston 2008-03-31 20:58:33 +00:00
parent 730af68b25
commit 66b5271479
1 changed files with 7 additions and 2 deletions

View File

@ -1094,8 +1094,13 @@ typedef enum
torrent = [fTorrents objectAtIndex: 0];
[fStateField setStringValue: [torrent stateString]];
[fProgressField setStringValue: [NSString localizedStringWithFormat: NSLocalizedString(@"%.2f%% (%.2f%% selected)",
"Inspector -> Activity tab -> progress"), 100.0 * [torrent progress], 100.0 * [torrent progressDone]]];
if ([torrent folder])
[fProgressField setStringValue: [NSString localizedStringWithFormat: NSLocalizedString(@"%.2f%% (%.2f%% selected)",
"Inspector -> Activity tab -> progress"), 100.0 * [torrent progress], 100.0 * [torrent progressDone]]];
else
[fProgressField setStringValue: [NSString localizedStringWithFormat: @"%.2f%%", 100.0 * [torrent progress]]];
[fRatioField setStringValue: [NSString stringForRatio: [torrent ratio]]];
[fSwarmSpeedField setStringValue: [torrent isActive] ? [NSString stringForSpeed: [torrent swarmSpeed]] : @""];