mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-03-27 06:12:47 +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:
@@ -22,6 +22,9 @@ showSquareBrackets = yes
|
|||||||
# specify the name of the first collection to load on start
|
# specify the name of the first collection to load on start
|
||||||
firstCollection = Main
|
firstCollection = Main
|
||||||
|
|
||||||
|
# specify whether RetroFE should switch to Favorites list if it exists.
|
||||||
|
autoFavorites = true
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# Video playback settings
|
# Video playback settings
|
||||||
#######################################
|
#######################################
|
||||||
|
|||||||
@@ -529,6 +529,12 @@ RetroFE::RETROFE_STATE RetroFE::processUserInput(Page *page)
|
|||||||
page->setScrollOffsetIndex(lastMenuOffsets_[nextPageItem_->name]);
|
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;
|
state = RETROFE_NEXT_PAGE_REQUEST;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user