Bind driver settings action OK callback to dropdown list

This commit is contained in:
twinaphex 2018-09-25 14:45:55 +02:00
parent a0e218bd44
commit 50bb491ba2

View File

@ -115,12 +115,6 @@ static int action_select_path_use_directory(const char *path,
return action_ok_path_use_directory(path, label, type, idx, 0 /* unused */); return action_ok_path_use_directory(path, label, type, idx, 0 /* unused */);
} }
static int action_select_driver_setting(const char *path, const char *label, unsigned type,
size_t idx)
{
return bind_right_generic(type, label, true);
}
static int action_select_core_setting(const char *path, const char *label, unsigned type, static int action_select_core_setting(const char *path, const char *label, unsigned type,
size_t idx) size_t idx)
{ {
@ -269,17 +263,6 @@ int menu_cbs_init_bind_select(menu_file_list_cbs_t *cbs,
} }
#endif #endif
if (cbs->setting)
{
uint64_t flags = cbs->setting->flags;
if (flags & SD_FLAG_IS_DRIVER)
{
BIND_ACTION_SELECT(cbs, action_select_driver_setting);
return 0;
}
}
if ((type >= MENU_SETTINGS_CORE_OPTION_START)) if ((type >= MENU_SETTINGS_CORE_OPTION_START))
{ {
BIND_ACTION_SELECT(cbs, action_select_core_setting); BIND_ACTION_SELECT(cbs, action_select_core_setting);