Don't show browser before resume.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5625 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2005-01-21 15:42:47 +00:00
parent 8e3cc0811c
commit b3c836522a

View file

@ -645,18 +645,20 @@ 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 (!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() */
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);
}
update_all = true;
put_cursorxy(CURSOR_X, CURSOR_Y + tc.dircursor, true);
while(1) {
struct entry *dircache = tc.dircache;