(menu_common_backend.c) Cut down on code duplication

This commit is contained in:
twinaphex 2014-09-04 05:18:42 +02:00
parent 0f12c67054
commit 288a4af1b0

View File

@ -1271,13 +1271,9 @@ static int menu_setting_ok_toggle(unsigned type,
driver.menu->selection_ptr);
return 0;
}
else if (!strcmp(label, "history_list"))
{
menu_entries_push(driver.menu->menu_stack,
"", label, type, driver.menu->selection_ptr);
return 0;
}
else if (menu_common_type_is(label, type) == MENU_FILE_DIRECTORY)
else if (!strcmp(label, "history_list") ||
menu_common_type_is(label, type) == MENU_FILE_DIRECTORY
)
{
menu_entries_push(driver.menu->menu_stack,
"", label, type, driver.menu->selection_ptr);