menu_entries_prepend - use menu_setting_find_enum if enum_idx

is set
This commit is contained in:
twinaphex 2016-06-15 16:45:27 +02:00
parent 6f3b8c4049
commit 8720048b4e

View File

@ -603,7 +603,10 @@ void menu_entries_prepend(file_list_t *list, const char *path, const char *label
file_list_set_actiondata(list, idx, cbs);
cbs->setting = menu_setting_find(label);
if (cbs->enum_idx == MENU_ENUM_LABEL_UNKNOWN)
cbs->setting = menu_setting_find(label);
else
cbs->setting = menu_setting_find_enum(cbs->enum_idx);
menu_cbs_init(list, cbs, path, label, type, idx);
}