Ignore:
Timestamp:
Oct 21, 2007, 1:53:29 PM (15 years ago)
Author:
livings124
Message:

set some menu titles without regard to what it is already set to (this should in theory be faster and looks cleaner)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r3485 r3489  
    28292829        NSString * title = [[fInfoController window] isVisible] ? NSLocalizedString(@"Hide Inspector", "View menu -> Inspector")
    28302830                            : NSLocalizedString(@"Show Inspector", "View menu -> Inspector");
    2831         if (![[menuItem title] isEqualToString: title])
    2832             [menuItem setTitle: title];
     2831        [menuItem setTitle: title];
    28332832
    28342833        return YES;
     
    28442843        NSString * title = [fStatusBar isHidden] ? NSLocalizedString(@"Show Status Bar", "View menu -> Status Bar")
    28452844                            : NSLocalizedString(@"Hide Status Bar", "View menu -> Status Bar");
    2846         if (![[menuItem title] isEqualToString: title])
    2847             [menuItem setTitle: title];
     2845        [menuItem setTitle: title];
    28482846
    28492847        return [fWindow isVisible];
     
    28552853        NSString * title = [fFilterBar isHidden] ? NSLocalizedString(@"Show Filter Bar", "View menu -> Filter Bar")
    28562854                            : NSLocalizedString(@"Hide Filter Bar", "View menu -> Filter Bar");
    2857         if (![[menuItem title] isEqualToString: title])
    2858             [menuItem setTitle: title];
     2855        [menuItem setTitle: title];
    28592856
    28602857        return [fWindow isVisible];
     
    30243021        NSString * filterType = [fDefaults stringForKey: @"FilterSearchType"];
    30253022       
    3026         int tag = [menuItem tag];
    30273023        BOOL state;
    3028         if (tag == FILTER_TYPE_TAG_TRACKER)
     3024        if ([menuItem tag] == FILTER_TYPE_TAG_TRACKER)
    30293025            state = [filterType isEqualToString: FILTER_TYPE_TRACKER];
    30303026        else
Note: See TracChangeset for help on using the changeset viewer.