Added enterOnCollection option to disable entering the collection on collectionUp/Down.

This commit is contained in:
Pieter Hulshoff 2019-11-02 13:04:16 +01:00
parent 3557484e32
commit fc52b94ce0
2 changed files with 7 additions and 3 deletions

View File

@ -774,7 +774,9 @@ void RetroFE::run( )
{ {
currentPage_->setScrolling(Page::ScrollDirectionIdle); // Stop scrolling currentPage_->setScrolling(Page::ScrollDirectionIdle); // Stop scrolling
nextPageItem_ = currentPage_->getSelectedItem( ); nextPageItem_ = currentPage_->getSelectedItem( );
if ( currentPage_->getSelectedItem( )->leaf ) // Current selection is a game bool enterOnCollection = true;
config_.getProperty( "enterOnCollection", enterOnCollection );
if ( currentPage_->getSelectedItem( )->leaf || !enterOnCollection ) // Current selection is a game or enterOnCollection is not set
{ {
state = RETROFE_HIGHLIGHT_REQUEST; state = RETROFE_HIGHLIGHT_REQUEST;
} }
@ -931,7 +933,9 @@ void RetroFE::run( )
{ {
currentPage_->setScrolling(Page::ScrollDirectionIdle); // Stop scrolling currentPage_->setScrolling(Page::ScrollDirectionIdle); // Stop scrolling
nextPageItem_ = currentPage_->getSelectedItem( ); nextPageItem_ = currentPage_->getSelectedItem( );
if ( currentPage_->getSelectedItem( )->leaf ) // Current selection is a game bool enterOnCollection = true;
config_.getProperty( "enterOnCollection", enterOnCollection );
if ( currentPage_->getSelectedItem( )->leaf || !enterOnCollection ) // Current selection is a game or enterOnCollection is not set
{ {
state = RETROFE_HIGHLIGHT_REQUEST; state = RETROFE_HIGHLIGHT_REQUEST;
} }

View File

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