diff options
author | William Wilgus <wilgus.william@gmail.com> | 2023-04-08 17:13:07 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2023-04-08 17:13:07 -0400 |
commit | 78c92c5ca85d275e43bacf0d9948ce9b94605f6e (patch) | |
tree | 4b167c51c68aed322588429e5d625fb4a3247d67 /apps/misc.c | |
parent | 3554306617245cf019f024fb0ba80ec2476ec5f9 (diff) | |
download | rockbox-78c92c5ca85d275e43bacf0d9948ce9b94605f6e.tar.gz rockbox-78c92c5ca85d275e43bacf0d9948ce9b94605f6e.zip |
[Feature] Supress voice during sleep timer shutdown
if show_shutdown_message == false and sleep timer is active
talk will be disabled on shutdown
Change-Id: Ia660e753700f3e283691f41797ef7a77a2d9a8d9
Diffstat (limited to 'apps/misc.c')
-rw-r--r-- | apps/misc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/misc.c b/apps/misc.c index e10fceb9af..21a45037ad 100644 --- a/apps/misc.c +++ b/apps/misc.c | |||
@@ -306,6 +306,12 @@ static bool clean_shutdown(enum shutdown_type sd_type, | |||
306 | { | 306 | { |
307 | long msg_id = -1; | 307 | long msg_id = -1; |
308 | 308 | ||
309 | if (!global_settings.show_shutdown_message && get_sleep_timer_active()) | ||
310 | { | ||
311 | talk_force_shutup(); | ||
312 | talk_disable(true); | ||
313 | } | ||
314 | |||
309 | status_save(); | 315 | status_save(); |
310 | 316 | ||
311 | #if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING) | 317 | #if CONFIG_CHARGING && !defined(HAVE_POWEROFF_WHILE_CHARGING) |