Added autoFavorites switch in main settings.conf to automaticaly switch to the favorites playlist if it is available.

This commit is contained in:
Pieter Hulshoff 2016-05-04 10:33:02 +02:00
parent 9ead070052
commit 6189ba6d05
2 changed files with 9 additions and 0 deletions

View File

@ -22,6 +22,9 @@ showSquareBrackets = yes
# specify the name of the first collection to load on start
firstCollection = Main
# specify whether RetroFE should switch to Favorites list if it exists.
autoFavorites = true
#######################################
# Video playback settings
#######################################

View File

@ -529,6 +529,12 @@ RetroFE::RETROFE_STATE RetroFE::processUserInput(Page *page)
page->setScrollOffsetIndex(lastMenuOffsets_[nextPageItem_->name]);
}
bool autoFavorites = true;
config_.getProperty("autoFavorites", autoFavorites);
if (autoFavorites)
page->nextPlaylist(); // Switch to favorites if it exists
state = RETROFE_NEXT_PAGE_REQUEST;
}
}