forked from len0rd/rockbox
bring back the Battery:Charging splash if you try turning off certain
targets with AC connected git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10628 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b80266c456
commit
30f237303b
2 changed files with 14 additions and 11 deletions
18
apps/tree.c
18
apps/tree.c
|
|
@ -662,17 +662,19 @@ static bool dirbrowse(void)
|
|||
}
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
/* ??
|
||||
#if defined(CONFIG_CHARGING) && !defined(HAVE_POWEROFF_WHILE_CHARGING)
|
||||
case TREE_OFF | BUTTON_REPEAT:
|
||||
if (charger_inserted()) {
|
||||
charging_splash();
|
||||
restore = true;
|
||||
{
|
||||
static int last_off = 0;
|
||||
if (current_tick - last_off < 50) {
|
||||
if (charger_inserted()) {
|
||||
charging_splash();
|
||||
restore = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
last_off = current_tick;
|
||||
}
|
||||
#endif
|
||||
*/
|
||||
break; /* case ACTION_TREE_STOP: */
|
||||
case ACTION_STD_MENU:
|
||||
/* don't enter menu from plugin browser */
|
||||
if (*tc.dirfilter < NUM_FILTER_MODES)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue