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

David Fuhrmann git at videolan.org
Sat Jul 28 16:47:09 CEST 2012


vlc/vlc-2.0 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Wed Jul 25 19:04:00 2012 +0200| [55f6ac26b75e847baf785f4e18d7c08fc6d7a140] | committer: Felix Paul Kühne

macosx: disable extensions submenu when they are no items to display
(cherry picked from commit 23247a858d2826594ba37343b59a19fc16fecd33)

Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=55f6ac26b75e847baf785f4e18d7c08fc6d7a140
---

 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 8521605..5383226 100644
--- a/modules/gui/macosx/MainMenu.m
+++ b/modules/gui/macosx/MainMenu.m
@@ -577,6 +577,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