mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
shortcuts: sleep timer: allow omitting number of minutes
'sleep' can now appear in the data field of a 'time' shortcut without being followed by a number, allowing you to stop a running timer, or to start a new one using the default sleep timer duration (the duration setting can already be added to the Shortcuts menu as well). Also see here: https://forums.rockbox.org/index.php/topic,54312.msg250940.html Change-Id: I9d0e62ef1b6187c35133067349729a4d94273c7a
This commit is contained in:
parent
b8b4fdd999
commit
f631bfe5b4
3 changed files with 50 additions and 17 deletions
|
|
@ -325,8 +325,10 @@ Available types are:
|
|||
\item[separator] \config{data} is ignored; \config{name} can be used to display text,
|
||||
or left blank to make the list more accessible with visual gaps
|
||||
\item[time] \config{data} needs to be \opt{rtc}{either ``talk'' to talk the time, or }``sleep X''
|
||||
where X is the number of minutes to run the sleep timer for (0 to disable). \config{name}
|
||||
is required for this shortcut type.
|
||||
where X can, optionally, be the number of minutes to run the sleep timer for (0 to disable).
|
||||
If ``sleep'' is not followed by a number, the sleep timer can be stopped, if running,
|
||||
or started using the default duration; \config{name} will be ignored in that case. Otherwise
|
||||
\config{name} is required for this shortcut type.
|
||||
\item[shutdown] \config{data} is ignored; \config{name} can be used to display text
|
||||
\end{description}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue