mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-12 17:58:53 +01:00
Added autoFavorites switch in main settings.conf to automaticaly switch to the favorites playlist if it is available.
This commit is contained in:
parent
9ead070052
commit
6189ba6d05
@ -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
|
||||
#######################################
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user