summaryrefslogtreecommitdiff
path: root/apps/menus/main_menu.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-09-19 11:10:54 +0100
committerAidan MacDonald <amachronic@protonmail.com>2022-10-02 09:21:25 -0400
commit9ce5b2a2eda5c7101898476adaa3533e0ba5db82 (patch)
treefacbfe9721d907b1a92f2b113b262374c6e2917e /apps/menus/main_menu.c
parentc1d75a6bcb30260eba288f643261c4a57959f45f (diff)
downloadrockbox-9ce5b2a2eda5c7101898476adaa3533e0ba5db82.tar.gz
rockbox-9ce5b2a2eda5c7101898476adaa3533e0ba5db82.zip
gui: Remove show/hide selection option in lists
The implementation of the "show_selection_marker" option in lists isn't great. It's a cosmetic option used to hide the selection, but it causes the list to do funny things to the selected_item and doesn't play nice with voiced menus, since these rely on the selection to determine what item is spoken. There are only two user-facing lists that use the option, the "Rockbox Info" screen and a menu in the superdom plugin. The rest are debug screens, and cosmetics don't matter much there. Given how little used the option is, and its issues, removing it seems reasonable. Change-Id: I2c70b3e4c74ff3cc6dbac46366a371d271dd2d58
Diffstat (limited to 'apps/menus/main_menu.c')
-rw-r--r--apps/menus/main_menu.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c
index 321f2cdec4..2814c44fe6 100644
--- a/apps/menus/main_menu.c
+++ b/apps/menus/main_menu.c
@@ -458,9 +458,6 @@ static int show_info(void)
458 struct simplelist_info info; 458 struct simplelist_info info;
459 int count = INFO_COUNT + refresh_data(&data) - 1; 459 int count = INFO_COUNT + refresh_data(&data) - 1;
460 simplelist_info_init(&info, str(LANG_ROCKBOX_INFO), count, (void*)&data); 460 simplelist_info_init(&info, str(LANG_ROCKBOX_INFO), count, (void*)&data);
461 info.hide_selection = !global_settings.talk_menu;
462 if (info.hide_selection)
463 info.scroll_all = true;
464 info.get_name = info_getname; 461 info.get_name = info_getname;
465 if(global_settings.talk_menu) 462 if(global_settings.talk_menu)
466 info.get_talk = info_speak_item; 463 info.get_talk = info_speak_item;