mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-20 02:22:43 -05:00
left exits the browsers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12541 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
361a60c964
commit
277c39c2fd
1 changed files with 10 additions and 1 deletions
11
apps/tree.c
11
apps/tree.c
|
|
@ -566,6 +566,7 @@ int dirbrowse()
|
||||||
bool need_update = true;
|
bool need_update = true;
|
||||||
bool exit_func = false;
|
bool exit_func = false;
|
||||||
long thumbnail_time = -1; /* for delaying a thumbnail */
|
long thumbnail_time = -1; /* for delaying a thumbnail */
|
||||||
|
long last_cancel = 0;
|
||||||
|
|
||||||
char* currdir = tc.currdir; /* just a shortcut */
|
char* currdir = tc.currdir; /* just a shortcut */
|
||||||
#ifdef HAVE_TAGCACHE
|
#ifdef HAVE_TAGCACHE
|
||||||
|
|
@ -646,8 +647,16 @@ int dirbrowse()
|
||||||
if ((*tc.dirfilter == SHOW_ID3DB && tc.dirlevel == 0) ||
|
if ((*tc.dirfilter == SHOW_ID3DB && tc.dirlevel == 0) ||
|
||||||
((*tc.dirfilter != SHOW_ID3DB && !strcmp(currdir,"/"))))
|
((*tc.dirfilter != SHOW_ID3DB && !strcmp(currdir,"/"))))
|
||||||
{
|
{
|
||||||
break; /* do nothing */
|
if (last_cancel && TIME_BEFORE(current_tick, last_cancel+HZ/2))
|
||||||
|
{
|
||||||
|
last_cancel = 0;
|
||||||
|
action_signalscreenchange(); /* eat the cancel presses */
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
return GO_TO_ROOT;
|
||||||
}
|
}
|
||||||
|
last_cancel = current_tick;
|
||||||
|
|
||||||
#ifdef HAVE_TAGCACHE
|
#ifdef HAVE_TAGCACHE
|
||||||
if (id3db)
|
if (id3db)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue