1
0
Fork 0
forked from len0rd/rockbox

Use LIST_WRAP_UNLESS_HELD consistently

LIST_WRAP_ON seems to only be used in 3 places
at this point.

- Keybox Plugin
- Puzzles Plugin
- (File) Properties Plugin

Switch them them over to LIST_WRAP_UNLESS_HELD
as that is used everywhere else and is arguably
preferable (the option to turn off list wrapping
completely remains, of course).

Change-Id: Id8017dcbb123a0568cb6db527a8966b63ba06d47
This commit is contained in:
Christian Soffke 2021-12-05 14:23:18 +01:00 committed by Aidan MacDonald
parent daa3967071
commit d93a3cac50
3 changed files with 5 additions and 5 deletions

View file

@ -567,7 +567,7 @@ static int keybox(void)
{
rb->gui_synclist_draw(&kb_list);
button = rb->get_action(CONTEXT_LIST, TIMEOUT_BLOCK);
if (rb->gui_synclist_do_button(&kb_list, &button, LIST_WRAP_ON))
if (rb->gui_synclist_do_button(&kb_list, &button, LIST_WRAP_UNLESS_HELD))
continue;
switch (button)