Skip to content

Commit

Permalink
added a few checks for the host app's preference menu item so that Cl…
Browse files Browse the repository at this point in the history
…ickToFlash's menu item more reliably goes in the right place
  • Loading branch information
Simone Manganelli authored and Simone Manganelli committed Jul 31, 2009
1 parent b0d67d0 commit 9282a9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Plugin/CTFMenubarMenuController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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 ] ) {
Expand Down

0 comments on commit 9282a9b

Please sign in to comment.