mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Fix FS#13319
Change-Id: Ia995e2de51f5d8984dffa90b97d4babb98f21399
This commit is contained in:
parent
6325971451
commit
64192cdfa8
1 changed files with 8 additions and 1 deletions
|
@ -659,9 +659,16 @@ int do_shortcut_menu(void *ignored)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SHORTCUT_SETTING:
|
case SHORTCUT_SETTING:
|
||||||
|
{
|
||||||
|
int old_sleeptimer_duration = global_settings.sleeptimer_duration;
|
||||||
do_setting_screen(sc->u.setting,
|
do_setting_screen(sc->u.setting,
|
||||||
sc->name[0] ? sc->name : P2STR(ID2P(sc->u.setting->lang_id)),NULL);
|
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;
|
break;
|
||||||
|
}
|
||||||
case SHORTCUT_DEBUGITEM:
|
case SHORTCUT_DEBUGITEM:
|
||||||
run_debug_screen(sc->u.path);
|
run_debug_screen(sc->u.path);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue