mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
shortcuts: allow empty name for sleep shortcuts with default duration
missed this in f631bfe
Change-Id: Ifdb3ffc04b49133b770850b98399605c04742f6e
This commit is contained in:
parent
b94e5d77fe
commit
556b466f05
1 changed files with 5 additions and 1 deletions
|
@ -186,7 +186,11 @@ static bool verify_shortcut(struct shortcut* sc)
|
|||
case SHORTCUT_SETTING:
|
||||
return sc->u.setting != NULL;
|
||||
case SHORTCUT_TIME:
|
||||
#if CONFIG_RTC
|
||||
if (sc->u.timedata.talktime)
|
||||
return sc->name[0] != '\0';
|
||||
#endif
|
||||
return sc->name[0] != '\0' || sc->u.timedata.sleep_timeout < 0;
|
||||
case SHORTCUT_DEBUGITEM:
|
||||
case SHORTCUT_SEPARATOR:
|
||||
case SHORTCUT_SHUTDOWN:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue