Changeset 5464


Ignore:
Timestamp:
Mar 31, 2008, 8:58:33 PM (14 years ago)
Author:
livings124
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r5452 r5464  
    10951095       
    10961096        [fStateField setStringValue: [torrent stateString]];
    1097         [fProgressField setStringValue: [NSString localizedStringWithFormat: NSLocalizedString(@"%.2f%% (%.2f%% selected)",
    1098                     "Inspector -> Activity tab -> progress"), 100.0 * [torrent progress], 100.0 * [torrent progressDone]]];
     1097       
     1098        if ([torrent folder])
     1099            [fProgressField setStringValue: [NSString localizedStringWithFormat: NSLocalizedString(@"%.2f%% (%.2f%% selected)",
     1100                "Inspector -> Activity tab -> progress"), 100.0 * [torrent progress], 100.0 * [torrent progressDone]]];
     1101        else
     1102            [fProgressField setStringValue: [NSString localizedStringWithFormat: @"%.2f%%", 100.0 * [torrent progress]]];
     1103           
    10991104        [fRatioField setStringValue: [NSString stringForRatio: [torrent ratio]]];
    11001105        [fSwarmSpeedField setStringValue: [torrent isActive] ? [NSString stringForSpeed: [torrent swarmSpeed]] : @""];
Note: See TracChangeset for help on using the changeset viewer.