Disabled automatic view style detection for non-legacy theme sets.

This commit is contained in:
Leon Styhre 2023-01-01 15:32:16 +01:00
parent d6db705b93
commit 14567baab4

View file

@ -752,8 +752,11 @@ std::shared_ptr<GamelistView> ViewController::getGamelistView(SystemData* system
else if (viewPreference == "video")
selectedViewStyle = VIDEO;
if (system->getTheme()->isLegacyTheme()) {
if (selectedViewStyle == AUTOMATIC) {
std::vector<FileData*> files {system->getRootFolder()->getFilesRecursive(GAME | FOLDER)};
std::vector<FileData*> files {
system->getRootFolder()->getFilesRecursive(GAME | FOLDER)};
for (auto it = files.cbegin(); it != files.cend(); ++it) {
if (themeHasVideoView && !(*it)->getVideoPath().empty()) {
selectedViewStyle = VIDEO;
@ -765,6 +768,7 @@ std::shared_ptr<GamelistView> ViewController::getGamelistView(SystemData* system
}
}
}
}
// Create the view.
switch (selectedViewStyle) {