mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
Disabled automatic view style detection for non-legacy theme sets.
This commit is contained in:
parent
d6db705b93
commit
14567baab4
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue