From b3c836522ac4fe8ce8d8364effc9474e11570054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Fri, 21 Jan 2005 15:42:47 +0000 Subject: [PATCH] Don't show browser before resume. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5625 a1c6a512-1295-4272-9138-f99709370657 --- apps/tree.c | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/apps/tree.c b/apps/tree.c index 0809ecbfae..65565f2d06 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -644,19 +644,21 @@ static bool dirbrowse(void) if (*tc.dirfilter < NUM_FILTER_MODES) start_resume(true); - - numentries = showdir(); - if (numentries == -1) - return false; /* currdir is not a directory */ - - if (*tc.dirfilter > NUM_FILTER_MODES && numentries==0) - { - splash(HZ*2, true, str(LANG_NO_FILES)); - return false; /* No files found for rockbox_browser() */ - } - update_all = true; - put_cursorxy(CURSOR_X, CURSOR_Y + tc.dircursor, true); + if (!start_wps) { + numentries = showdir(); + if (numentries == -1) + return false; /* currdir is not a directory */ + + if (*tc.dirfilter > NUM_FILTER_MODES && numentries==0) + { + splash(HZ*2, true, str(LANG_NO_FILES)); + return false; /* No files found for rockbox_browser() */ + } + update_all = true; + + put_cursorxy(CURSOR_X, CURSOR_Y + tc.dircursor, true); + } while(1) { struct entry *dircache = tc.dircache;