shortcuts: Power off while charging if supported

Change-Id: I33b9d643053f746d24240ba59a34a1f9c7644f3e
This commit is contained in:
Christian Soffke 2025-10-14 13:22:51 +02:00 committed by Solomon Peachy
parent 994acefa23
commit 71d2016f4d

View file

@ -821,7 +821,7 @@ int do_shortcut_menu(void *ignored)
run_debug_screen(sc->u.path);
break;
case SHORTCUT_SHUTDOWN:
#if CONFIG_CHARGING
#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING)
if (charger_inserted())
charging_splash();
else
@ -829,7 +829,7 @@ int do_shortcut_menu(void *ignored)
sys_poweroff();
break;
case SHORTCUT_REBOOT:
#if CONFIG_CHARGING
#if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING)
if (charger_inserted())
charging_splash();
else