Move menu_unset_refresh call

This commit is contained in:
twinaphex 2015-05-16 18:15:35 +02:00
parent e59dc3a64a
commit 3ead5590e6
2 changed files with 6 additions and 6 deletions

View File

@ -2034,11 +2034,7 @@ int menu_displaylist_push(file_list_t *list, file_list_t *menu_list)
strlcpy(info.path, path, sizeof(info.path));
strlcpy(info.label, label, sizeof(info.label));
ret = menu_displaylist_deferred_push(&info);
menu_unset_refresh();
return ret;
return menu_displaylist_deferred_push(&info);
}
/**

View File

@ -491,7 +491,11 @@ int menu_entry_action(menu_entry_t *entry, unsigned i, enum menu_action action)
case MENU_ACTION_REFRESH:
if (cbs && cbs->action_refresh)
return cbs->action_refresh(menu_list->selection_buf, menu_list->menu_stack);
{
int ret = cbs->action_refresh(menu_list->selection_buf, menu_list->menu_stack);
menu_unset_refresh();
return ret;
}
break;
case MENU_ACTION_MESSAGE: