(Menu) Use menu_entry_action

This commit is contained in:
twinaphex 2015-05-17 18:22:16 +02:00
parent 2e1ec249b0
commit e66f7db4a9

View File

@ -716,7 +716,7 @@ static int menu_input_mouse_frame(
return cbs->action_toggle(entry->type, entry->label, MENU_ACTION_RIGHT, true);
if (BIT64_GET(input_mouse, MOUSE_ACTION_BUTTON_L_OK))
return cbs->action_ok(entry->path, entry->label, entry->type, nav->selection_ptr);
return menu_entry_action(entry, nav->selection_ptr, MENU_ACTION_OK);
if (BIT64_GET(input_mouse, MOUSE_ACTION_BUTTON_L_SET_NAVIGATION))
{
@ -846,7 +846,7 @@ static int pointer_tap(menu_file_list_cbs_t *cbs,
|| setting->type == ST_FLOAT || setting->type == ST_STRING))
return cbs->action_toggle(entry->type, entry->label, MENU_ACTION_RIGHT, true);
else if (menu->pointer.ptr == menu->navigation.selection_ptr)
return cbs->action_ok(entry->path, entry->label, entry->type, menu->navigation.selection_ptr);
return menu_entry_action(entry, menu->navigation.selection_ptr, MENU_ACTION_OK);
else
menu_navigation_set(&menu->navigation, menu->pointer.ptr, false);