[vlc-commits] macosx: use var_InheritBool to read macosx-statusicon

David Fuhrmann git at videolan.org
Sun Feb 28 14:50:04 CET 2016


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Feb 28 14:48:02 2016 +0100| [fa34285ebeee44f3b85d8725b04548470400bff0] | committer: David Fuhrmann

macosx: use var_InheritBool to read macosx-statusicon

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

 modules/gui/macosx/intf.m |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 1d2c0ad..4ee2f67 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -96,7 +96,7 @@ int OpenIntf (vlc_object_t *p_this)
 
         [NSBundle loadNibNamed:@"MainMenu" owner:[[VLCMain sharedInstance] mainMenu]];
         // if statusbar enabled in preferences
-        if (config_GetInt(p_intf, "macosx-statusicon")) {
+        if (var_InheritBool(p_intf, "macosx-statusicon")) {
             [NSBundle loadNibNamed:@"VLCStatusBarIconMainMenu" owner:[[VLCMain sharedInstance] statusBarIcon]];
         }
         [[[VLCMain sharedInstance] mainWindow] makeKeyAndOrderFront:nil];
@@ -233,7 +233,7 @@ static VLCMain *sharedInstance = nil;
         _mainmenu = [[VLCMainMenu alloc] init];
 
         // if statusbar enabled in preferences
-        if (config_GetInt(p_intf, "macosx-statusicon")) {
+        if (var_InheritBool(p_intf, "macosx-statusicon")) {
             _statusBarIcon = [[VLCStatusBarIcon  alloc] init];
         }
 



More information about the vlc-commits mailing list