Commit fa34285e authored by David Fuhrmann's avatar David Fuhrmann

macosx: use var_InheritBool to read macosx-statusicon

parent b8869f97
......@@ -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];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment