in the inspector, don't show the percent complete for selected when it's not multi-file
This commit is contained in:
parent
730af68b25
commit
66b5271479
|
@ -1094,8 +1094,13 @@ typedef enum
|
||||||
torrent = [fTorrents objectAtIndex: 0];
|
torrent = [fTorrents objectAtIndex: 0];
|
||||||
|
|
||||||
[fStateField setStringValue: [torrent stateString]];
|
[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]]];
|
[fRatioField setStringValue: [NSString stringForRatio: [torrent ratio]]];
|
||||||
[fSwarmSpeedField setStringValue: [torrent isActive] ? [NSString stringForSpeed: [torrent swarmSpeed]] : @""];
|
[fSwarmSpeedField setStringValue: [torrent isActive] ? [NSString stringForSpeed: [torrent swarmSpeed]] : @""];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue