macosx: use var_InheritBool to read macosx-statusicon
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Sun, 28 Feb 2016 13:48:02 +0000 (14:48 +0100)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Sun, 28 Feb 2016 13:48:02 +0000 (14:48 +0100)
modules/gui/macosx/intf.m

index 1d2c0ad..4ee2f67 100644 (file)
@@ -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];
         }