summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2005-01-21 15:42:47 +0000
committerBjörn Stenberg <bjorn@haxx.se>2005-01-21 15:42:47 +0000
commitb3c836522ac4fe8ce8d8364effc9474e11570054 (patch)
treeeeadf894e4ece523eee51c6355b251cc8aa6a99a
parent8e3cc0811c0372db312305cb499603ceb2fda51f (diff)
downloadrockbox-b3c836522ac4fe8ce8d8364effc9474e11570054.tar.gz
rockbox-b3c836522ac4fe8ce8d8364effc9474e11570054.tar.bz2
rockbox-b3c836522ac4fe8ce8d8364effc9474e11570054.zip
Don't show browser before resume.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5625 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/tree.c24
1 files changed, 13 insertions, 11 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);
+
+ if (!start_wps) {
+ numentries = showdir();
+ if (numentries == -1)
+ return false; /* currdir is not a directory */
- 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;
+ 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);
+ put_cursorxy(CURSOR_X, CURSOR_Y + tc.dircursor, true);
+ }
while(1) {
struct entry *dircache = tc.dircache;