mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
d1aeb7db9d
commit
ef1e7d8896
5 changed files with 13 additions and 20 deletions
|
@ -42,6 +42,7 @@
|
|||
#include "plugin.h"
|
||||
#include "file.h"
|
||||
#include "pathfuncs.h"
|
||||
#include "playlist_menu.h"
|
||||
|
||||
/*#define LOGF_ENABLE*/
|
||||
#include "logf.h"
|
||||
|
@ -1096,6 +1097,9 @@ static bool play_bookmark(const char* bookmark)
|
|||
/* ----------------------------------------------------------------------- */
|
||||
bool bookmark_create_menu(void)
|
||||
{
|
||||
if (!bookmark_is_bookmarkable_state())
|
||||
save_playlist_screen(NULL);
|
||||
|
||||
return write_bookmark(true);
|
||||
}
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue