mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 05:02:33 -05:00
shortcuts: Power off while charging if supported
Change-Id: I33b9d643053f746d24240ba59a34a1f9c7644f3e
This commit is contained in:
parent
994acefa23
commit
71d2016f4d
1 changed files with 2 additions and 2 deletions
|
|
@ -821,7 +821,7 @@ int do_shortcut_menu(void *ignored)
|
||||||
run_debug_screen(sc->u.path);
|
run_debug_screen(sc->u.path);
|
||||||
break;
|
break;
|
||||||
case SHORTCUT_SHUTDOWN:
|
case SHORTCUT_SHUTDOWN:
|
||||||
#if CONFIG_CHARGING
|
#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING)
|
||||||
if (charger_inserted())
|
if (charger_inserted())
|
||||||
charging_splash();
|
charging_splash();
|
||||||
else
|
else
|
||||||
|
|
@ -829,7 +829,7 @@ int do_shortcut_menu(void *ignored)
|
||||||
sys_poweroff();
|
sys_poweroff();
|
||||||
break;
|
break;
|
||||||
case SHORTCUT_REBOOT:
|
case SHORTCUT_REBOOT:
|
||||||
#if CONFIG_CHARGING
|
#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING)
|
||||||
if (charger_inserted())
|
if (charger_inserted())
|
||||||
charging_splash();
|
charging_splash();
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue