From ead172c05d57568d201709c5fac77cbb8982bbd0 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Mon, 19 Sep 2022 11:38:09 +0100 Subject: gui: Remove redundant copies of list scrolling settings gui_list_screen_scroll_step() and gui_list_screen_scroll_out_of_view() just copy the global setting into a local static variable. Since they don't do anything special when the setting changes it's simpler to use the global setting directly. Change-Id: Ib6a7bf4e09b6dabbc1597cf28ddbafc0bc857526 --- apps/plugins/rb_info.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'apps/plugins/rb_info.c') diff --git a/apps/plugins/rb_info.c b/apps/plugins/rb_info.c index e0ec117dfb..03c6671843 100644 --- a/apps/plugins/rb_info.c +++ b/apps/plugins/rb_info.c @@ -428,7 +428,6 @@ int menu_action_cb(int *action, int selected_item, bool* exit, struct gui_syncli if (cur->menuid == MENU_ID(M_TESTPUT)) { - //rb->gui_list_screen_scroll_out_of_view(true); synclist_set(cur->menuid, 0, cur->items, 1); #if LCD_DEPTH > 1 /* If line sep is set to automatic then outline cells */ @@ -473,7 +472,6 @@ int menu_action_cb(int *action, int selected_item, bool* exit, struct gui_syncli { if (lists->data == MENU_ID(M_TESTPUT)) { - //rb->gui_list_screen_scroll_out_of_view(false); //lists->callback_draw_item = NULL; printcell_enable(lists, false, false); } -- cgit v1.2.3