(Menu) Refactor function into menu_entries_push call

This commit is contained in:
twinaphex 2014-09-01 05:56:58 +02:00
parent e4745c0f24
commit 2baac0bb71
3 changed files with 1 additions and 7 deletions

View File

@ -807,11 +807,6 @@ int menu_parse_and_resolve(void)
return 0;
}
void menu_entries_push_info(void)
{
file_list_push(driver.menu->menu_stack, "", "help", 0, 0);
}
void menu_flush_stack_type(unsigned final_type)
{
const char *path = NULL;

View File

@ -24,7 +24,6 @@ void menu_entries_push(file_list_t *list,
size_t directory_ptr, unsigned action);
int menu_entries_push_list(menu_handle_t *menu, const char *path,
const char *label, unsigned menu_type);
void menu_entries_push_info(void);
int menu_parse_check(unsigned menu_type);
int menu_parse_and_resolve(void);
void menu_entries_pop(void);

View File

@ -1479,7 +1479,7 @@ static void general_write_handler(const void *data)
if (*setting->value.boolean)
{
#ifdef HAVE_MENU
menu_entries_push_info();
menu_entries_push(driver.menu->menu_stack, "", "help", 0, 0, MENU_ACTION_OK);
#endif
*setting->value.boolean = false;
}