(Menu) Small cleanups

This commit is contained in:
twinaphex 2014-10-28 07:12:59 +01:00
parent e96074d452
commit 44703be456

View File

@ -618,13 +618,8 @@ static int menu_common_iterate(unsigned action)
case MENU_ACTION_LEFT:
if (is_category)
{
int ret = 0;
if (cbs && cbs->action_toggle)
ret = cbs->action_toggle(type_offset, label_offset, action);
if (ret)
return ret;
}
else
{
@ -639,13 +634,8 @@ static int menu_common_iterate(unsigned action)
case MENU_ACTION_RIGHT:
if (is_category)
{
int ret = 0;
if (cbs && cbs->action_toggle)
ret = cbs->action_toggle(type_offset, label_offset, action);
if (ret)
return ret;
}
else
{
@ -676,6 +666,9 @@ static int menu_common_iterate(unsigned action)
break;
}
if (ret)
return ret;
ret = mouse_post_iterate(cbs, path_offset, label_offset, type_offset, action);
if (driver.menu_ctx && driver.menu_ctx->iterate)