Ignore:
Timestamp:
May 23, 2008, 10:58:17 PM (14 years ago)
Author:
livings124
Message:

potential fix for users that have "0 times" opened in stats window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/StatsWindowController.m

    r5915 r5926  
    194194                                        [NSString timeString: statsAll.secondsActive showSeconds: NO]]];
    195195   
    196     switch (statsAll.sessionCount)
    197     {
    198         case 1:
    199             [fNumOpenedField setStringValue: NSLocalizedString(@"1 time", "stats window -> times opened")];
    200             break;
    201         case 0: //for users that have this problem
    202             [fNumOpenedField setStringValue: NSLocalizedString(@"N/A", "stats window -> times opened")];
    203             break;
    204         default:
    205             [fNumOpenedField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%d times", "stats window -> times opened"),
    206                                                 statsAll.sessionCount]];
    207     }
     196    if (statsAll.sessionCount == 1)
     197        [fNumOpenedField setStringValue: NSLocalizedString(@"1 time", "stats window -> times opened")];
     198    else
     199        [fNumOpenedField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%u times", "stats window -> times opened"),
     200                                            statsAll.sessionCount]];
    208201}
    209202
Note: See TracChangeset for help on using the changeset viewer.