Fixed some small bugs with the new cyclePlaylist feature.

This commit is contained in:
Pieter Hulshoff 2019-10-06 15:43:35 +02:00
parent e6f9192bb8
commit 62a15eed53
2 changed files with 3 additions and 1 deletions

View File

@ -1096,8 +1096,9 @@ void Page::cyclePlaylist(std::vector<std::string> list)
// Current playlist found; switch to the next found playlist in the list
else
{
for(;; ++it)
for(;;)
{
++it;
if (it == list.end()) it = list.begin(); // wrap
selectPlaylist( *it );
if (*it == getPlaylistName())

View File

@ -1000,6 +1000,7 @@ RetroFE::RETROFE_STATE RetroFE::processUserInput( Page *page )
!input_.keystate(UserInput::KeyCodeFavPlaylist) &&
!input_.keystate(UserInput::KeyCodeNextPlaylist) &&
!input_.keystate(UserInput::KeyCodePrevPlaylist) &&
!input_.keystate(UserInput::KeyCodeCyclePlaylist) &&
!input_.keystate(UserInput::KeyCodeAddPlaylist) &&
!input_.keystate(UserInput::KeyCodeRemovePlaylist) &&
!input_.keystate(UserInput::KeyCodeRandom) &&