mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-01-12 09:08:53 +01:00
Fixed bug in prevCyclePlaylist action.
This commit is contained in:
parent
5655ac9911
commit
e72c7dbb3a
@ -1243,10 +1243,10 @@ void Page::prevCyclePlaylist(std::vector<std::string> list)
|
||||
while (*it != getPlaylistName() && it != list.end())
|
||||
++it;
|
||||
|
||||
// If current playlist not found, switch to the last found cycle playlist in the playlist list
|
||||
// If current playlist not found, switch to the first found cycle playlist in the playlist list
|
||||
if (it == list.end())
|
||||
{
|
||||
for (std::vector<std::string>::iterator it2 = list.end(); it2 != list.begin(); --it2)
|
||||
for (std::vector<std::string>::iterator it2 = list.begin(); it2 != list.end(); ++it2)
|
||||
{
|
||||
selectPlaylist( *it2 );
|
||||
if (*it2 == getPlaylistName())
|
||||
@ -1258,8 +1258,8 @@ void Page::prevCyclePlaylist(std::vector<std::string> list)
|
||||
{
|
||||
for(;;)
|
||||
{
|
||||
--it;
|
||||
if (it == list.begin()) it = list.end(); // wrap
|
||||
--it;
|
||||
selectPlaylist( *it );
|
||||
if (*it == getPlaylistName())
|
||||
break;
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
|
||||
std::string retrofe_version_major = "0";
|
||||
std::string retrofe_version_minor = "9";
|
||||
std::string retrofe_version_build = "20";
|
||||
std::string retrofe_version_build = "21";
|
||||
|
||||
|
||||
std::string Version::getString( )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user