Permalink
Browse files

Change variable name

  • Loading branch information...
1 parent d28c0a2 commit e6c2da892f458cd478cce9623de8c78deb2c6aaf @codler committed Aug 27, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 Battery Time Remaining/AppDelegate.m
@@ -114,16 +114,16 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
[advancedSubmenuItem setHidden:!self.advancedSupported];
// Time display control menu item
- NSMenuItem *timeFormatSubmenuItem = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"Display time with parentheses", @"Display time with parentheses setting") action:@selector(toggleParenthesis:) keyEquivalent:@""];
- [timeFormatSubmenuItem setTag:kBTRMenuParenthesis];
- timeFormatSubmenuItem.target = self;
+ NSMenuItem *parenthesisSubmenuItem = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"Display time with parentheses", @"Display time with parentheses setting") action:@selector(toggleParenthesis:) keyEquivalent:@""];
+ [parenthesisSubmenuItem setTag:kBTRMenuParenthesis];
+ parenthesisSubmenuItem.target = self;
showParenthesis = [[NSUserDefaults standardUserDefaults] boolForKey:@"parentheses"];
- timeFormatSubmenuItem.state = (showParenthesis) ? NSOnState : NSOffState;
+ parenthesisSubmenuItem.state = (showParenthesis) ? NSOnState : NSOffState;
// Build the setting submenu
NSMenu *settingSubmenu = [[NSMenu alloc] initWithTitle:@"Setting Menu"];
[settingSubmenu addItem:advancedSubmenuItem];
- [settingSubmenu addItem:timeFormatSubmenuItem];
+ [settingSubmenu addItem:parenthesisSubmenuItem];
// Settings menu item
NSMenuItem *settingMenu = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"Settings", @"Settings menuitem") action:nil keyEquivalent:@""];

0 comments on commit e6c2da8

Please sign in to comment.