Added autoPlaylist option to distinguish between the first playlist on startup and the playlist while scrolling.

This commit is contained in:
Pieter Hulshoff 2020-04-23 10:50:09 +02:00
parent 7153df848a
commit b2ee4b8db6
2 changed files with 13 additions and 13 deletions

View File

@ -630,8 +630,8 @@ bool RetroFE::run( )
bool rememberMenu = false;
config_.getProperty( "rememberMenu", rememberMenu );
std::string firstPlaylist = "all";
config_.getProperty( "firstPlaylist", firstPlaylist );
std::string autoPlaylist = "all";
config_.getProperty( "autoPlaylist", autoPlaylist );
if (rememberMenu && lastMenuPlaylists_.find( nextPageName ) != lastMenuPlaylists_.end( ))
{
@ -639,7 +639,7 @@ bool RetroFE::run( )
}
else
{
currentPage_->selectPlaylist( firstPlaylist );
currentPage_->selectPlaylist( autoPlaylist );
}
if ( rememberMenu && lastMenuOffsets_.find( nextPageName ) != lastMenuOffsets_.end( ) )
@ -729,8 +729,8 @@ bool RetroFE::run( )
bool rememberMenu = false;
config_.getProperty( "rememberMenu", rememberMenu );
std::string firstPlaylist = "all";
config_.getProperty( "firstPlaylist", firstPlaylist );
std::string autoPlaylist = "all";
config_.getProperty( "autoPlaylist", autoPlaylist );
if (rememberMenu && lastMenuPlaylists_.find( currentPage_->getCollectionName( ) ) != lastMenuPlaylists_.end( ))
{
@ -738,7 +738,7 @@ bool RetroFE::run( )
}
else
{
currentPage_->selectPlaylist( firstPlaylist );
currentPage_->selectPlaylist( autoPlaylist );
}
if ( rememberMenu && lastMenuOffsets_.find( currentPage_->getCollectionName( ) ) != lastMenuOffsets_.end( ) )
@ -898,8 +898,8 @@ bool RetroFE::run( )
bool rememberMenu = false;
config_.getProperty( "rememberMenu", rememberMenu );
std::string firstPlaylist = "all";
config_.getProperty( "firstPlaylist", firstPlaylist );
std::string autoPlaylist = "all";
config_.getProperty( "autoPlaylist", autoPlaylist );
if (rememberMenu && lastMenuPlaylists_.find( currentPage_->getCollectionName( ) ) != lastMenuPlaylists_.end( ))
{
@ -907,7 +907,7 @@ bool RetroFE::run( )
}
else
{
currentPage_->selectPlaylist( firstPlaylist );
currentPage_->selectPlaylist( autoPlaylist );
}
if ( rememberMenu && lastMenuOffsets_.find( currentPage_->getCollectionName( ) ) != lastMenuOffsets_.end( ) )
@ -1068,8 +1068,8 @@ bool RetroFE::run( )
bool rememberMenu = false;
config_.getProperty( "rememberMenu", rememberMenu );
std::string firstPlaylist = "all";
config_.getProperty( "firstPlaylist", firstPlaylist );
std::string autoPlaylist = "all";
config_.getProperty( "autoPlaylist", autoPlaylist );
if (rememberMenu && lastMenuPlaylists_.find( currentPage_->getCollectionName( ) ) != lastMenuPlaylists_.end( ))
{
@ -1077,7 +1077,7 @@ bool RetroFE::run( )
}
else
{
currentPage_->selectPlaylist( firstPlaylist );
currentPage_->selectPlaylist( autoPlaylist );
}
if ( rememberMenu && lastMenuOffsets_.find( currentPage_->getCollectionName( ) ) != lastMenuOffsets_.end( ) )

View File

@ -21,7 +21,7 @@
std::string retrofe_version_major = "0";
std::string retrofe_version_minor = "9";
std::string retrofe_version_build = "33";
std::string retrofe_version_build = "34";
std::string Version::getString( )