From e66f7db4a9cb025b4d46fd06747db30fc5b21158 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 17 May 2015 18:22:16 +0200 Subject: [PATCH] (Menu) Use menu_entry_action --- menu/menu_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/menu/menu_input.c b/menu/menu_input.c index 97125aab16..7f403077f4 100644 --- a/menu/menu_input.c +++ b/menu/menu_input.c @@ -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);