forked from len0rd/rockbox
Fix the bug where holding left no longer stopped at the browser root.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13983 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9e61b1b0e6
commit
ffeccda8cd
2 changed files with 5 additions and 10 deletions
|
|
@ -523,7 +523,6 @@ static int dirbrowse()
|
|||
bool need_update = true;
|
||||
bool exit_func = false;
|
||||
long thumbnail_time = -1; /* for delaying a thumbnail */
|
||||
long last_cancel = 0;
|
||||
|
||||
char* currdir = tc.currdir; /* just a shortcut */
|
||||
#ifdef HAVE_TAGCACHE
|
||||
|
|
@ -605,15 +604,11 @@ static int dirbrowse()
|
|||
if ((*tc.dirfilter == SHOW_ID3DB && tc.dirlevel == 0) ||
|
||||
((*tc.dirfilter != SHOW_ID3DB && !strcmp(currdir,"/"))))
|
||||
{
|
||||
if (last_cancel && TIME_BEFORE(current_tick, last_cancel+HZ/2))
|
||||
{
|
||||
last_cancel = 0;
|
||||
if (returned_button == ACTION_STD_CANCEL)
|
||||
break;
|
||||
}
|
||||
else
|
||||
return GO_TO_ROOT;
|
||||
}
|
||||
last_cancel = current_tick;
|
||||
|
||||
#ifdef HAVE_TAGCACHE
|
||||
if (id3db)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue