projects
/
enjoyable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Signal mappings menu entry by a tag, not a check for a separator. Remove dead code.
[enjoyable.git]
/
EnjoyableApplicationDelegate.m
diff --git
a/EnjoyableApplicationDelegate.m
b/EnjoyableApplicationDelegate.m
index
74e8265
..
0dbea22
100644
(file)
--- a/
EnjoyableApplicationDelegate.m
+++ b/
EnjoyableApplicationDelegate.m
@@
-39,9
+39,7
@@
name:NJEventTranslationDeactivated
object:nil];
name:NJEventTranslationDeactivated
object:nil];
- mappingsMenuIndex = dockMenuBase.numberOfItems;
- while (![dockMenuBase itemAtIndex:mappingsMenuIndex - 1].isSeparatorItem)
- --mappingsMenuIndex;
+ while (![dockMenuBase itemAtIndex:mappingsMenuIndex++].tag);
self.outputController.enabled = NO;
[self.inputController setup];
self.outputController.enabled = NO;
[self.inputController setup];
@@
-69,10
+67,6
@@
NSLog(@"Ignoring application changes.");
}
NSLog(@"Ignoring application changes.");
}
-- (IBAction)toggleActivity:(id)sender {
- self.inputController.translatingEvents = !self.inputController.translatingEvents;
-}
-
- (void)mappingsChanged {
NSInteger removeFrom = mappingsMenuIndex;
while (dockMenuBase.numberOfItems > removeFrom)
- (void)mappingsChanged {
NSInteger removeFrom = mappingsMenuIndex;
while (dockMenuBase.numberOfItems > removeFrom)