From e6360627aba0d270f074f8aea7eb254739b8f274 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 8 Dec 2015 15:20:44 +0100 Subject: [PATCH] menu_cbs_right.c - cleanup --- menu/cbs/menu_cbs_right.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/menu/cbs/menu_cbs_right.c b/menu/cbs/menu_cbs_right.c index e822a1a602..950c99522d 100644 --- a/menu/cbs/menu_cbs_right.c +++ b/menu/cbs/menu_cbs_right.c @@ -150,10 +150,11 @@ static int action_right_mainmenu(unsigned type, const char *label, if (list_size == 1) { + size_t list_size_horiz = menu_driver_list_get_size(MENU_LIST_HORIZONTAL); + size_t list_size_tabs = menu_driver_list_get_size(MENU_LIST_TABS); menu_navigation_ctl(MENU_NAVIGATION_CTL_SET_SELECTION, &selection); - if (menu_driver_list_get_selection() != - (menu_driver_list_get_size(MENU_LIST_HORIZONTAL) - + menu_driver_list_get_size(MENU_LIST_TABS)) + + if ((menu_driver_list_get_selection() != (list_size_horiz + list_size_tabs)) || settings->menu.navigation.wraparound.enable) push_list = 1; }