Fixed an issue where an extra game image could be shown for legacy themes.

This commit is contained in:
Leon Styhre 2022-01-30 20:00:49 +01:00
parent f2c708bf79
commit db05fb3800

View file

@ -387,7 +387,6 @@ void GamelistView::legacyUpdateInfoPanel()
mRandomGame->getThumbnailPath());
mImageComponents[LegacyImage::MD_MARQUEE]->setImage(mRandomGame->getMarqueePath(),
false, true);
mImageComponents[LegacyImage::MD_IMAGE]->setImage(mRandomGame->getImagePath());
if (mViewStyle == ViewController::VIDEO) {
mVideoComponents.front()->setImage(mRandomGame->getImagePath());
// Always stop the video before setting a new video as it will otherwise
@ -400,6 +399,9 @@ void GamelistView::legacyUpdateInfoPanel()
if (!mVideoComponents.front()->setVideo(mRandomGame->getVideoPath()))
mVideoComponents.front()->setDefaultVideo();
}
else {
mImageComponents[LegacyImage::MD_IMAGE]->setImage(mRandomGame->getImagePath());
}
}
else {
mImageComponents[LegacyImage::MD_THUMBNAIL]->setImage("");