Skip to content
Browse files

Remove the "Invert Scroll Events" menu item in non-DEBUG builds.

  • Loading branch information...
1 parent d93122d commit 77307d5f83e723f20c6473c9d92104422817ce06 @correia committed Apr 15, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 Source/ApplicationController.m
View
7 Source/ApplicationController.m
@@ -54,7 +54,12 @@ - (void)awakeFromNib;
NSAssert(!_statusItem, @"");
NSAssert(_statusItemMenu, @"");
- _statusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:32] retain];
+#if !DEBUG
+ // -toggleInvertScrollEvents: is really only useful in debug builds
+ NSInteger itemIndex = [_statusItemMenu indexOfItemWithTarget:self andAction:@selector(toggleInvertScrollEvents:)];
+ [_statusItemMenu removeItemAtIndex:itemIndex];
+#endif
+
[_statusItem setImage:[NSImage imageNamed:@"StatusMenuIcon"]];
[_statusItem setAlternateImage:[NSImage imageNamed:@"StatusMenuIcon-Highlighted"]];
[_statusItem setHighlightMode:YES];

0 comments on commit 77307d5

Please sign in to comment.
Something went wrong with that request. Please try again.