Update CONFIG_STRING_OPTIONS

This commit is contained in:
twinaphex 2016-10-26 09:15:24 +02:00
parent 57cf5c5ff5
commit bd479ac0e3
2 changed files with 2 additions and 1 deletions

View File

@ -2624,7 +2624,6 @@ static bool setting_append_list(
settings_data_list_current_add_flags(list, list_info, SD_FLAG_IS_DRIVER);
(*list)[list_info->index - 1].action_left = setting_string_action_left_driver;
(*list)[list_info->index - 1].action_right = setting_string_action_right_driver;
menu_settings_list_current_add_enum_idx(list, list_info, string_options_entries[i].name_enum_idx);
}
END_SUB_GROUP(list, list_info, parent_group);

View File

@ -1713,6 +1713,8 @@ bool CONFIG_STRING_OPTIONS(
if (value.name)
value.name_hash = msg_hash_calculate(value.name);
(*list)[list_info->index++] = value;
menu_settings_list_current_add_enum_idx(list, list_info, name_enum_idx);
menu_settings_list_current_add_enum_value_idx(list, list_info, SHORT_enum_idx);
/* Request values to be freed later */
settings_data_list_current_add_free_flags(list, list_info, SD_FREE_FLAG_VALUES);