menus: Stop scrolling before entering the USB screen or remnants of the previous list could appear on it.
Change-Id: I2753c239ef787e0a6af64c3d9c5bdeb26326a9d0
This commit is contained in:
parent
a969e1f456
commit
98591a2815
1 changed files with 4 additions and 0 deletions
|
@ -670,6 +670,9 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected,
|
|||
}
|
||||
else
|
||||
{
|
||||
if (action == SYS_USB_CONNECTED)
|
||||
gui_synclist_scroll_stop(&lists);
|
||||
|
||||
switch(default_event_handler(action))
|
||||
{
|
||||
case SYS_USB_CONNECTED:
|
||||
|
@ -692,6 +695,7 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected,
|
|||
gui_synclist_speak_item(&lists);
|
||||
}
|
||||
}
|
||||
|
||||
if (start_selected)
|
||||
{
|
||||
/* make sure the start_selected variable is set to
|
||||
|
|
Loading…
Reference in a new issue