diff options
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r-- | apps/gui/list.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index 6727f9b998..5c16c00aeb 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c | |||
@@ -1185,7 +1185,7 @@ bool simplelist_show_list(struct simplelist_info *info) | |||
1185 | while(1) | 1185 | while(1) |
1186 | { | 1186 | { |
1187 | gui_syncstatusbar_draw(&statusbars, true); | 1187 | gui_syncstatusbar_draw(&statusbars, true); |
1188 | action = get_action(CONTEXT_STD, HZ/5); | 1188 | action = get_action(CONTEXT_STD, HZ/100); |
1189 | if (gui_synclist_do_button(&lists, &action, LIST_WRAP_UNLESS_HELD)) | 1189 | if (gui_synclist_do_button(&lists, &action, LIST_WRAP_UNLESS_HELD)) |
1190 | continue; | 1190 | continue; |
1191 | if (info->action_callback) | 1191 | if (info->action_callback) |
@@ -1196,14 +1196,16 @@ bool simplelist_show_list(struct simplelist_info *info) | |||
1196 | } | 1196 | } |
1197 | if (action == ACTION_STD_CANCEL) | 1197 | if (action == ACTION_STD_CANCEL) |
1198 | break; | 1198 | break; |
1199 | else if ((action == ACTION_REDRAW) || (old_line_count == simplelist_line_count)) | 1199 | else if ((action == ACTION_REDRAW) || (old_line_count != simplelist_line_count)) |
1200 | { | 1200 | { |
1201 | if (info->get_name == NULL) | 1201 | if (info->get_name == NULL) |
1202 | gui_synclist_set_nb_items(&lists, simplelist_line_count*info->selection_size); | 1202 | gui_synclist_set_nb_items(&lists, simplelist_line_count*info->selection_size); |
1203 | gui_synclist_draw(&lists); | 1203 | gui_synclist_draw(&lists); |
1204 | old_line_count = simplelist_line_count; | ||
1204 | } | 1205 | } |
1205 | else if(default_event_handler(action) == SYS_USB_CONNECTED) | 1206 | else if(default_event_handler(action) == SYS_USB_CONNECTED) |
1206 | return true; | 1207 | return true; |
1208 | |||
1207 | } | 1209 | } |
1208 | return false; | 1210 | return false; |
1209 | } | 1211 | } |