Add action_ok callback for FILE_PATH

This commit is contained in:
twinaphex 2014-11-17 02:19:36 +01:00
parent 985d378261
commit 97c7860cf2

View File

@ -564,6 +564,12 @@ static int action_ok_file_load(const char *path,
return 0;
}
static int action_ok_file_path(const char *path,
const char *label, unsigned type, size_t idx)
{
return menu_action_setting_set(type, label, MENU_ACTION_OK);
}
static int action_ok_set_path(const char *path,
const char *label, unsigned type, size_t idx)
{
@ -2122,6 +2128,9 @@ static int menu_entries_cbs_init_bind_ok_first(menu_file_list_cbs_t *cbs,
else
return -1;
break;
case MENU_FILE_PATH:
cbs->action_ok = action_ok_file_path;
break;
case MENU_FILE_FONT:
case MENU_FILE_OVERLAY:
case MENU_FILE_AUDIOFILTER: