Playlist Viewer & Catalogue: Go to WPS when ACTION_TREE_WPS is pressed

Change-Id: Id69253beadcc203ea0e2d16e5acc353aee0f6ad4
This commit is contained in:
Christian Soffke 2022-11-19 13:01:49 +01:00
parent 3d34140cfb
commit b3a464c9d1
2 changed files with 5 additions and 2 deletions

View file

@ -161,7 +161,9 @@ static int display_playlists(char* playlist, bool view)
restart:
browse.flags &= ~BROWSE_SELECTED;
if (rockbox_browse(&browse) == GO_TO_WPS)
int browse_ret = rockbox_browse(&browse);
if (browse_ret == GO_TO_WPS
|| (view && browse_ret == GO_TO_PREVIOUS_MUSIC))
result = 0;
if (browse.flags & BROWSE_SELECTED)

View file

@ -883,7 +883,8 @@ enum playlist_viewer_result playlist_viewer_ex(const char* filename)
else
{
exit = true;
ret = PLAYLIST_VIEWER_CANCEL;
ret = button == ACTION_TREE_WPS ?
PLAYLIST_VIEWER_OK : PLAYLIST_VIEWER_CANCEL;
}
break;
}