Merge pull request #362 from tomaz82/image_fix

Fix thumbnail and image to be separated
This commit is contained in:
John Rassa 2018-01-31 22:38:58 -05:00 committed by GitHub
commit 55e578e18c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -565,6 +565,7 @@ void CollectionSystemManager::updateCollectionFolderMetadata(SystemData* sys)
std::string genre = "None";
std::string video = "";
std::string thumbnail = "";
std::string image = "";
std::unordered_map<std::string, FileData*> games = rootFolder->getChildrenByFilename();
@ -608,6 +609,7 @@ void CollectionSystemManager::updateCollectionFolderMetadata(SystemData* sys)
video = randomGame->getVideoPath();
thumbnail = randomGame->getThumbnailPath();
image = randomGame->getImagePath();
}
@ -618,7 +620,8 @@ void CollectionSystemManager::updateCollectionFolderMetadata(SystemData* sys)
rootFolder->metadata.set("releasedate", releasedate);
rootFolder->metadata.set("developer", developer);
rootFolder->metadata.set("video", video);
rootFolder->metadata.set("image", thumbnail);
rootFolder->metadata.set("thumbnail", thumbnail);
rootFolder->metadata.set("image", image);
}
void CollectionSystemManager::initCustomCollectionSystems()

View file

@ -245,7 +245,7 @@ void VideoGameListView::updateInfoPanel()
mVideo->setImage(file->getThumbnailPath());
mMarquee.setImage(file->getMarqueePath());
mImage.setImage(file->getThumbnailPath());
mImage.setImage(file->getImagePath());
mDescription.setText(file->metadata.get("desc"));
mDescContainer.reset();