bookmarks: show 'Create Bookmark' for unsaved playlists

Instead of hiding this option when the current playlist
is unsaved, we can offer to save the playlist, if
necessary, before attempting to create a bookmark.

This simplifies the workflow by getting rid of steps 1
and 2 that a user currently needs to perform:

1) Open context menu, check if "Create Bookmark" option
   is available
2) If not: Re-open context menu. Select Current Playlist
   -> Save Current Playlist
3) Re-open context menu. Select Bookmarks
   -> Create Bookmark

Change-Id: Ia9fb5f9db95e2fcbde03470a3c3745824424a339
This commit is contained in:
Christian Soffke 2024-05-26 19:13:55 +02:00
parent d1aeb7db9d
commit ef1e7d8896
5 changed files with 13 additions and 20 deletions

View file

@ -14,11 +14,9 @@
the bookmark to load. There are other ways to load a bookmarks mentioned
below.
\note{Bookmarking does not work with dynamic (i.e. modified but not saved)
playlists, such as when playing tracks from the \setting{Database} instead of
the \setting{File Browser}.
If you do not see the option to create a bookmark in the \setting{WPS Context Menu},
try saving the current playlist first.
\note{If the current playlist has been modified or is unsaved, such as when
playing tracks from the \setting{Database}, Rockbox will automatically
offer to save the playlist to a file when you attempt to create a bookmark.
Queued tracks (see \reference{ref:queuing}) do not get saved to the playlist file.
You're asked to confirm their removal when saving, so that the current playlist
can be bookmarked. }

View file

@ -53,9 +53,9 @@ If the \setting{Save a list of recently created bookmarks} option is enabled
then you can view a list of several recent bookmarks here and select one to
jump straight to that track.\\*
\note{A track launched from the file browser can be bookmarked as is. If
tracks are launched via the database, or the current playlist has been modified,
creating a bookmark requires that you save the playlist first.\\*}
\note{A track launched from the file browser can be bookmarked as-is. For
tracks launched via the database, or for modified playlists, you're
asked to save the playlist to a file when creating a bookmark.\\*}
\begin{btnmap}
\ActionStdNext

View file

@ -226,8 +226,8 @@ browser. The value wraps at 10.
\subsubsection{\label{ref:createbookmark}Bookmarks}
Create a bookmark in the currently playing track, or display existing entries.
Bookmarks can only be used with directories, or playlists stored on
disk. If you don't see the option to create a bookmark, try saving the
current playlist first.
disk. You'll be asked to provide the name for a file to save the playlist to,
if necessary.
\note{If you've enabled options for queuing tracks (see \reference{ref:queuing}), keep
in mind that those are not saved to a playlist file.