Replaced last call to autoFavorites with firstPlaylist calls.

This commit is contained in:
Pieter Hulshoff 2019-04-21 12:06:51 +02:00
parent 19417ac2f9
commit da44941c58

View File

@ -747,20 +747,17 @@ void RetroFE::run( )
bool rememberMenu = false;
config_.getProperty( "rememberMenu", rememberMenu );
bool autoFavorites = true;
config_.getProperty( "autoFavorites", autoFavorites );
std::string firstPlaylist = "all";
config_.getProperty( "firstPlaylist", firstPlaylist );
if (rememberMenu && lastMenuPlaylists_.find( currentPage_->getCollectionName( ) ) != lastMenuPlaylists_.end( ))
{
currentPage_->selectPlaylist( lastMenuPlaylists_[currentPage_->getCollectionName( )] ); // Switch to last playlist
}
else if ( autoFavorites )
{
currentPage_->selectPlaylist( "favorites" ); // Switch to favorites playlist
}
else
{
currentPage_->selectPlaylist( "all" ); // Switch to all games playlist
currentPage_->selectPlaylist( firstPlaylist );
}
if ( rememberMenu && lastMenuOffsets_.find( currentPage_->getCollectionName( ) ) != lastMenuOffsets_.end( ) )