diff options
Diffstat (limited to 'apps/gui')
-rw-r--r-- | apps/gui/list.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c index 64551055c3..4d19bbdf96 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c | |||
@@ -1285,6 +1285,11 @@ bool simplelist_show_list(struct simplelist_info *info) | |||
1285 | gui_syncstatusbar_draw(&statusbars, true); | 1285 | gui_syncstatusbar_draw(&statusbars, true); |
1286 | list_do_action(CONTEXT_STD, info->timeout, | 1286 | list_do_action(CONTEXT_STD, info->timeout, |
1287 | &lists, &action, LIST_WRAP_UNLESS_HELD); | 1287 | &lists, &action, LIST_WRAP_UNLESS_HELD); |
1288 | #ifdef SIMULATOR | ||
1289 | /* Sim has no interrupts, so this is needed for buttons to be recognised */ | ||
1290 | if (info->timeout == TIMEOUT_NOBLOCK) | ||
1291 | yield(); | ||
1292 | #endif | ||
1288 | if (info->action_callback) | 1293 | if (info->action_callback) |
1289 | { | 1294 | { |
1290 | action = info->action_callback(action, &lists); | 1295 | action = info->action_callback(action, &lists); |
@@ -1303,7 +1308,6 @@ bool simplelist_show_list(struct simplelist_info *info) | |||
1303 | } | 1308 | } |
1304 | else if(default_event_handler(action) == SYS_USB_CONNECTED) | 1309 | else if(default_event_handler(action) == SYS_USB_CONNECTED) |
1305 | return true; | 1310 | return true; |
1306 | |||
1307 | } | 1311 | } |
1308 | talk_shutup(); | 1312 | talk_shutup(); |
1309 | return false; | 1313 | return false; |