mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-06-06 02:46:49 +02:00
Replaced last call to autoFavorites with firstPlaylist calls.
This commit is contained in:
@@ -747,20 +747,17 @@ void RetroFE::run( )
|
|||||||
|
|
||||||
bool rememberMenu = false;
|
bool rememberMenu = false;
|
||||||
config_.getProperty( "rememberMenu", rememberMenu );
|
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( ))
|
if (rememberMenu && lastMenuPlaylists_.find( currentPage_->getCollectionName( ) ) != lastMenuPlaylists_.end( ))
|
||||||
{
|
{
|
||||||
currentPage_->selectPlaylist( lastMenuPlaylists_[currentPage_->getCollectionName( )] ); // Switch to last playlist
|
currentPage_->selectPlaylist( lastMenuPlaylists_[currentPage_->getCollectionName( )] ); // Switch to last playlist
|
||||||
}
|
}
|
||||||
else if ( autoFavorites )
|
|
||||||
{
|
|
||||||
currentPage_->selectPlaylist( "favorites" ); // Switch to favorites playlist
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
currentPage_->selectPlaylist( "all" ); // Switch to all games playlist
|
currentPage_->selectPlaylist( firstPlaylist );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( rememberMenu && lastMenuOffsets_.find( currentPage_->getCollectionName( ) ) != lastMenuOffsets_.end( ) )
|
if ( rememberMenu && lastMenuOffsets_.find( currentPage_->getCollectionName( ) ) != lastMenuOffsets_.end( ) )
|
||||||
|
|||||||
Reference in New Issue
Block a user