diff options
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r-- | apps/gui/list.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index 77ec090b04..6f0b4ed19c 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c | |||
@@ -876,7 +876,7 @@ bool simplelist_show_list(struct simplelist_info *info) | |||
876 | else | 876 | else |
877 | gui_synclist_set_nb_items(&lists, info->count*info->selection_size); | 877 | gui_synclist_set_nb_items(&lists, info->count*info->selection_size); |
878 | 878 | ||
879 | gui_synclist_select_item(&lists, info->start_selection); | 879 | gui_synclist_select_item(&lists, info->selection); |
880 | 880 | ||
881 | gui_synclist_draw(&lists); | 881 | gui_synclist_draw(&lists); |
882 | gui_synclist_speak_item(&lists); | 882 | gui_synclist_speak_item(&lists); |
@@ -910,6 +910,7 @@ bool simplelist_show_list(struct simplelist_info *info) | |||
910 | else if(default_event_handler(action) == SYS_USB_CONNECTED) | 910 | else if(default_event_handler(action) == SYS_USB_CONNECTED) |
911 | return true; | 911 | return true; |
912 | } | 912 | } |
913 | info->selection = gui_synclist_get_sel_pos(&lists); | ||
913 | talk_shutup(); | 914 | talk_shutup(); |
914 | return false; | 915 | return false; |
915 | } | 916 | } |
@@ -923,7 +924,7 @@ void simplelist_info_init(struct simplelist_info *info, char* title, | |||
923 | info->hide_selection = false; | 924 | info->hide_selection = false; |
924 | info->scroll_all = false; | 925 | info->scroll_all = false; |
925 | info->timeout = HZ/10; | 926 | info->timeout = HZ/10; |
926 | info->start_selection = 0; | 927 | info->selection = 0; |
927 | info->action_callback = NULL; | 928 | info->action_callback = NULL; |
928 | info->get_icon = NULL; | 929 | info->get_icon = NULL; |
929 | info->get_name = NULL; | 930 | info->get_name = NULL; |