Hide Wifi settings if null wifi driver selected

This commit is contained in:
twinaphex 2016-09-22 04:19:31 +02:00
parent 9b93f1b520
commit af46e81080

View File

@ -2480,14 +2480,17 @@ static bool setting_append_list(
parent_group);
menu_settings_list_current_add_enum_idx(list, list_info, MENU_ENUM_LABEL_UPDATER_SETTINGS);
CONFIG_ACTION(
list, list_info,
msg_hash_to_str(MENU_ENUM_LABEL_WIFI_SETTINGS),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_WIFI_SETTINGS),
&group_info,
&subgroup_info,
parent_group);
menu_settings_list_current_add_enum_idx(list, list_info, MENU_ENUM_LABEL_WIFI_SETTINGS);
if (!string_is_equal(settings->wifi.driver, "null"))
{
CONFIG_ACTION(
list, list_info,
msg_hash_to_str(MENU_ENUM_LABEL_WIFI_SETTINGS),
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_WIFI_SETTINGS),
&group_info,
&subgroup_info,
parent_group);
menu_settings_list_current_add_enum_idx(list, list_info, MENU_ENUM_LABEL_WIFI_SETTINGS);
}
CONFIG_ACTION(
list, list_info,