Changeset 1677


Ignore:
Timestamp:
Apr 6, 2007, 3:25:15 PM (15 years ago)
Author:
livings124
Message:

get rid of pointless variable

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentCell.h

    r1645 r1677  
    3131@interface TorrentCell : NSCell
    3232{
    33     BOOL fStatusRegular;
    34    
    3533    NSImage * fProgressWhite, * fProgressBlue, * fProgressGray, * fProgressGreen,
    3634                    * fProgressAdvanced, * fProgressEndWhite, * fProgressEndBlue,
  • trunk/macosx/TorrentCell.m

    r1676 r1677  
    4545    {
    4646        fDefaults = [NSUserDefaults standardUserDefaults];
    47        
    48         fStatusRegular = [fDefaults boolForKey: @"SmallStatusRegular"];
    4947   
    5048        NSSize startSize = NSMakeSize(100.0, BAR_HEIGHT);
     
    182180- (void) toggleMinimalStatus
    183181{
    184     fStatusRegular = !fStatusRegular;
    185     [fDefaults setBool: fStatusRegular forKey: @"SmallStatusRegular"];
     182    [fDefaults setBool: ![fDefaults boolForKey: @"SmallStatusRegular"] forKey: @"SmallStatusRegular"];
    186183}
    187184
     
    289286        NSSize nameSize = [nameString sizeWithAttributes: nameAttributes];
    290287       
    291         NSString * statusString = !fStatusRegular && [[info objectForKey: @"Active"] boolValue]
     288        NSString * statusString = ![fDefaults boolForKey: @"SmallStatusRegular"] && [[info objectForKey: @"Active"] boolValue]
    292289                                        ? [info objectForKey: @"RemainingTimeString"]
    293290                                        : [info objectForKey: @"ShortStatusString"];
Note: See TracChangeset for help on using the changeset viewer.