[vlc-commits] macosx: disable extensions submenu when they are no items to display

David Fuhrmann git at videolan.org
Wed Jul 25 19:14:37 CEST 2012


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Wed Jul 25 19:04:00 2012 +0200| [23247a858d2826594ba37343b59a19fc16fecd33] | committer: David Fuhrmann

macosx: disable extensions submenu when they are no items to display

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=23247a858d2826594ba37343b59a19fc16fecd33
---

 modules/gui/macosx/MainMenu.m |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/gui/macosx/MainMenu.m b/modules/gui/macosx/MainMenu.m
index 47e7ff3..3803228 100644
--- a/modules/gui/macosx/MainMenu.m
+++ b/modules/gui/macosx/MainMenu.m
@@ -598,6 +598,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
 
     /* Let the ExtensionsManager itself build the menu */
     [o_extMgr buildMenu:o_mu_extensions];
+    [o_mi_extensions setEnabled: ( [o_mu_extensions numberOfItems] > 0 )];
 }
 
 #pragma mark -



More information about the vlc-commits mailing list