mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-31 04:25:40 +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")
|
else if (viewPreference == "video")
|
||||||
selectedViewStyle = VIDEO;
|
selectedViewStyle = VIDEO;
|
||||||
|
|
||||||
|
if (system->getTheme()->isLegacyTheme()) {
|
||||||
if (selectedViewStyle == AUTOMATIC) {
|
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) {
|
for (auto it = files.cbegin(); it != files.cend(); ++it) {
|
||||||
if (themeHasVideoView && !(*it)->getVideoPath().empty()) {
|
if (themeHasVideoView && !(*it)->getVideoPath().empty()) {
|
||||||
selectedViewStyle = VIDEO;
|
selectedViewStyle = VIDEO;
|
||||||
|
@ -765,6 +768,7 @@ std::shared_ptr<GamelistView> ViewController::getGamelistView(SystemData* system
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Create the view.
|
// Create the view.
|
||||||
switch (selectedViewStyle) {
|
switch (selectedViewStyle) {
|
||||||
|
|
Loading…
Reference in a new issue