1
0
Fork 0
forked from len0rd/rockbox

Act on the button-down event for the clean shutdown, and show the charging splash if the charger is attached

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4948 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-07-26 07:39:23 +00:00
parent 0aeed7d148
commit 0c01305eb9

View file

@ -642,8 +642,6 @@ static bool ask_resume(bool ask_once)
break; break;
default: default:
/* React only on release events */
if(button & BUTTON_REL)
stop = true; stop = true;
break; break;
} }
@ -1016,7 +1014,7 @@ static bool dirbrowse(char *root, int *dirfilter)
break; break;
#ifdef HAVE_RECORDER_KEYPAD #ifdef HAVE_RECORDER_KEYPAD
case BUTTON_OFF | BUTTON_REL: case BUTTON_OFF:
/* Stop the music if it is playing, else show the shutdown /* Stop the music if it is playing, else show the shutdown
screen */ screen */
if(mpeg_status()) if(mpeg_status())
@ -1025,6 +1023,8 @@ static bool dirbrowse(char *root, int *dirfilter)
if (!charger_inserted()) { if (!charger_inserted()) {
shutdown_screen(); shutdown_screen();
restore = true; restore = true;
} else {
charging_splash();
} }
} }
break; break;