Hide 'Recording Settings' if recording driver set to NULL

This commit is contained in:
twinaphex 2015-06-21 09:12:16 +02:00
parent 0d2b37e020
commit 3291f40238
1 changed files with 30 additions and 24 deletions

View File

@ -6956,31 +6956,37 @@ static bool setting_append_list_privacy_options(
START_SUB_GROUP(list, list_info, "State", START_SUB_GROUP(list, list_info, "State",
group_info.name, subgroup_info, parent_group); group_info.name, subgroup_info, parent_group);
CONFIG_BOOL( if (strcmp(settings->record.driver, "null") != 0)
settings->camera.allow, {
menu_hash_to_str(MENU_LABEL_CAMERA_ALLOW), CONFIG_BOOL(
menu_hash_to_str(MENU_LABEL_VALUE_CAMERA_ALLOW), settings->camera.allow,
false, menu_hash_to_str(MENU_LABEL_CAMERA_ALLOW),
menu_hash_to_str(MENU_VALUE_OFF), menu_hash_to_str(MENU_LABEL_VALUE_CAMERA_ALLOW),
menu_hash_to_str(MENU_VALUE_ON), false,
group_info.name, menu_hash_to_str(MENU_VALUE_OFF),
subgroup_info.name, menu_hash_to_str(MENU_VALUE_ON),
parent_group, group_info.name,
general_write_handler, subgroup_info.name,
general_read_handler); parent_group,
general_write_handler,
general_read_handler);
}
CONFIG_BOOL( if (strcmp(settings->location.driver, "null") != 0)
settings->location.allow, {
menu_hash_to_str(MENU_LABEL_LOCATION_ALLOW), CONFIG_BOOL(
menu_hash_to_str(MENU_LABEL_VALUE_LOCATION_ALLOW), settings->location.allow,
false, menu_hash_to_str(MENU_LABEL_LOCATION_ALLOW),
menu_hash_to_str(MENU_VALUE_OFF), menu_hash_to_str(MENU_LABEL_VALUE_LOCATION_ALLOW),
menu_hash_to_str(MENU_VALUE_ON), false,
group_info.name, menu_hash_to_str(MENU_VALUE_OFF),
subgroup_info.name, menu_hash_to_str(MENU_VALUE_ON),
parent_group, group_info.name,
general_write_handler, subgroup_info.name,
general_read_handler); parent_group,
general_write_handler,
general_read_handler);
}
END_SUB_GROUP(list, list_info, parent_group); END_SUB_GROUP(list, list_info, parent_group);
END_GROUP(list, list_info, parent_group); END_GROUP(list, list_info, parent_group);