diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2021-10-21 23:36:09 +0200 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2021-12-08 22:26:38 -0500 |
commit | 7e0e4fe888eba8133a753bb2abc748b0c404e9f5 (patch) | |
tree | 81bb6a5aecb8a2dee19ff03bd649010d7da87d27 /apps/misc.c | |
parent | 5433ea540555f18d3986c5067c6f26ddf497bd9b (diff) | |
download | rockbox-7e0e4fe888eba8133a753bb2abc748b0c404e9f5.tar.gz rockbox-7e0e4fe888eba8133a753bb2abc748b0c404e9f5.zip |
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
Diffstat (limited to 'apps/misc.c')
-rw-r--r-- | apps/misc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/misc.c b/apps/misc.c index 7da86930ba..2668ba714d 100644 --- a/apps/misc.c +++ b/apps/misc.c | |||
@@ -323,7 +323,10 @@ static bool clean_shutdown(void (*callback)(void *), void *parameter) | |||
323 | #endif | 323 | #endif |
324 | level = battery_level(); | 324 | level = battery_level(); |
325 | if (level > 10 || level < 0) | 325 | if (level > 10 || level < 0) |
326 | splash(0, str(LANG_SHUTTINGDOWN)); | 326 | { |
327 | if (global_settings.show_shutdown_message) | ||
328 | splash(0, str(LANG_SHUTTINGDOWN)); | ||
329 | } | ||
327 | else | 330 | else |
328 | { | 331 | { |
329 | msg_id = LANG_WARNING_BATTERY_LOW; | 332 | msg_id = LANG_WARNING_BATTERY_LOW; |