summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-01-28 16:08:10 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-01-28 16:08:10 +0000
commitbb3685edd8a7ae1dcbbbb196b8b379bf3906c4ff (patch)
tree62d3ce746873454f0745582503646d48fa1d865c /apps/tree.c
parentedf4d8ce0f81727479e75032e49c9557fcb3ac14 (diff)
Allow usb connect in ask_resume
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3176 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 7a35ebe0a4..a918ecd8fa 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -492,8 +492,14 @@ bool ask_resume(void)
#endif
lcd_update();
- if (button_get(true) == BUTTON_PLAY)
- return true;
+ switch (button_get(true)) {
+ case BUTTON_PLAY:
+ return true;
+
+ case SYS_USB_CONNECTED:
+ usb_screen();
+ break;
+ }
if ( global_settings.resume == RESUME_ASK_ONCE) {
global_settings.resume_index = -1;