mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Add setting to hide shutdown message
Also keeps display from lighting up before shutdown, which reduces distractions, especially at night and when the sleep timer is used by allowing the screen to remain dark. Change-Id: I1c2d1966f6fb9766532adf01e8828876a871857f
This commit is contained in:
parent
5433ea5405
commit
7e0e4fe888
8 changed files with 41 additions and 2 deletions
|
@ -21,6 +21,9 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
#include "config.h"
|
||||
#if !defined(BOOTLOADER)
|
||||
#include "settings.h"
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#include "cpu.h"
|
||||
#include "kernel.h"
|
||||
|
@ -667,7 +670,11 @@ void backlight_thread(void)
|
|||
|
||||
case SYS_POWEROFF: /* Lock backlight on poweroff so it doesn't */
|
||||
locked = true; /* go off before power is actually cut. */
|
||||
/* fall through */
|
||||
#if !defined(BOOTLOADER)
|
||||
if (!global_settings.show_shutdown_message)
|
||||
break;
|
||||
#endif
|
||||
/* else fall through */
|
||||
#if CONFIG_CHARGING
|
||||
case SYS_CHARGER_CONNECTED:
|
||||
case SYS_CHARGER_DISCONNECTED:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue