Browse Source

macosx: respect hidden cat/subcat "hack"

Certain sets of options in the core option set use a cat/subcat of -1 as
a "hack" to avoid those options showing up in the GUI prefs set. This is
the case for options like --help for instance. While the Qt GUI plugin
respects this, the MacOSX one was missing checks for this, and so surely
(I don't have a mac so I can't look and see) it was including them when
it shouldn't.

Signed-off-by: Felix Paul Kühne <felix@feepk.net>
pull/116/head
Lyndon Brown 7 years ago
committed by Felix Paul Kühne
parent
commit
05e2f75ad0
  1. 8
      modules/gui/macosx/preferences/prefs.m

8
modules/gui/macosx/preferences/prefs.m

@ -510,6 +510,10 @@
int configType = p_configs[j].i_type;
if (configType == CONFIG_CATEGORY) {
if( p_configs[j].value.i == -1 ) {
categoryItem = nil;
continue;
}
categoryItem = [self itemRepresentingCategory:(int)p_configs[j].value.i];
if (!categoryItem) {
categoryItem = [VLCTreeCategoryItem categoryTreeItemWithCategory:(int)p_configs[j].value.i];
@ -521,6 +525,10 @@
if (configType == CONFIG_SUBCATEGORY) {
lastsubcat = (int)p_configs[j].value.i;
if( lastsubcat == -1 ) {
subCategoryItem = nil;
continue;
}
if (categoryItem && ![self isSubCategoryGeneral:lastsubcat]) {
subCategoryItem = [categoryItem itemRepresentingSubCategory:lastsubcat];
if (!subCategoryItem) {

Loading…
Cancel
Save