From 64192cdfa8c11c117567e19f80033a2c184db357 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Fri, 19 Nov 2021 17:55:10 +0100 Subject: Fix FS#13319 Change-Id: Ia995e2de51f5d8984dffa90b97d4babb98f21399 --- apps/shortcuts.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/shortcuts.c b/apps/shortcuts.c index 443183934b..3672178647 100644 --- a/apps/shortcuts.c +++ b/apps/shortcuts.c @@ -659,9 +659,16 @@ int do_shortcut_menu(void *ignored) } break; case SHORTCUT_SETTING: + { + int old_sleeptimer_duration = global_settings.sleeptimer_duration; do_setting_screen(sc->u.setting, sc->name[0] ? sc->name : P2STR(ID2P(sc->u.setting->lang_id)),NULL); + + if (old_sleeptimer_duration != global_settings.sleeptimer_duration && + get_sleep_timer()) + set_sleeptimer_duration(global_settings.sleeptimer_duration); break; + } case SHORTCUT_DEBUGITEM: run_debug_screen(sc->u.path); break; @@ -683,7 +690,7 @@ int do_shortcut_menu(void *ignored) { char timer_buf[10]; set_sleeptimer_duration(sc->u.timedata.sleep_timeout); - splashf(HZ, "%s (%s)", str(LANG_SLEEP_TIMER), + splashf(HZ, "%s (%s)", str(LANG_SLEEP_TIMER), sleep_timer_formatter(timer_buf, sizeof(timer_buf), sc->u.timedata.sleep_timeout, NULL)); } -- cgit v1.2.3