mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-28 09:38:52 +01:00
Replaced last call to autoFavorites with firstPlaylist calls.
This commit is contained in:
parent
19417ac2f9
commit
da44941c58
@ -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( ) )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user