Browse files

added a few checks for the host app's preference menu item so that Cl…

…ickToFlash's menu item more reliably goes in the right place
  • Loading branch information...
1 parent b0d67d0 commit 9282a9bda6c01ea2432bc96ae054d5394ec85c6a Simone Manganelli committed Jul 31, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 Plugin/CTFMenubarMenuController.m
View
4 Plugin/CTFMenubarMenuController.m
@@ -95,7 +95,9 @@ - (int) applicationMenuPrefsInsertionLocation
NSMenuItem* item = [ applicationMenu itemAtIndex: i ];
- if( [ item action ] == @selector( showPreferences: ) )
+ if( [ item action ] == @selector( showPreferences: )
+ || [ item action ] == @selector( showPreferencePanel: )
+ || [ item action ] == @selector( showPreferencesPanel: ) )
showPrefsItem = i;
if( showPrefsItem >= 0 && [ item isSeparatorItem ] ) {

0 comments on commit 9282a9b

Please sign in to comment.