Changeset 853


Ignore:
Timestamp:
Sep 8, 2006, 1:17:26 AM (15 years ago)
Author:
livings124
Message:

enable new menu items more accurately

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r852 r853  
    20552055        NSString * title = [fStatusBar isHidden] ? @"Show Status Bar" : @"Hide Status Bar";
    20562056        if (![[menuItem title] isEqualToString: title])
    2057                 [menuItem setTitle: title];
     2057            [menuItem setTitle: title];
    20582058
    20592059        return [fWindow isVisible];
     
    20652065        NSString * title = [fFilterBar isHidden] ? @"Show Filter Bar" : @"Hide Filter Bar";
    20662066        if (![[menuItem title] isEqualToString: title])
    2067                 [menuItem setTitle: title];
     2067            [menuItem setTitle: title];
    20682068
    20692069        return [fWindow isVisible];
     
    20722072    //enable prev/next filter button
    20732073    if (action == @selector(switchFilter:))
    2074         return [fWindow isVisible];
     2074        return [fWindow isVisible] && ![fFilterBar isHidden];
    20752075
    20762076    //enable reveal in finder
Note: See TracChangeset for help on using the changeset viewer.