diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2006-10-21 10:17:53 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2006-10-21 10:17:53 +0000 |
| commit | 79225ab7cb209484d763410d2ab7c7377d17dcdc (patch) | |
| tree | fdc69c976c4e0791f89a13e8dd7fd18f5766a25f | |
| parent | eee87c67b0e06a1fe0d8bd2f88dde2f953c9ee34 (diff) | |
| download | rockbox-79225ab7cb209484d763410d2ab7c7377d17dcdc.zip rockbox-79225ab7cb209484d763410d2ab7c7377d17dcdc.tar.gz rockbox-79225ab7cb209484d763410d2ab7c7377d17dcdc.tar.bz2 rockbox-79225ab7cb209484d763410d2ab7c7377d17dcdc.tar.xz | |
Player can't be shut down while connected to the charger.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11289 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/main_menu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c index 0ac4d94..a50a2cb 100644 --- a/apps/main_menu.c +++ b/apps/main_menu.c @@ -370,7 +370,10 @@ bool info_menu(void) #ifdef HAVE_LCD_CHARCELLS static bool do_shutdown(void) { - sys_poweroff(); + if (!charger_inserted()) + sys_poweroff(); + else + charging_splash(); return false; } #endif |