mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
Fixed an issue where an extra game image could be shown for legacy themes.
This commit is contained in:
parent
f2c708bf79
commit
db05fb3800
|
@ -387,7 +387,6 @@ void GamelistView::legacyUpdateInfoPanel()
|
||||||
mRandomGame->getThumbnailPath());
|
mRandomGame->getThumbnailPath());
|
||||||
mImageComponents[LegacyImage::MD_MARQUEE]->setImage(mRandomGame->getMarqueePath(),
|
mImageComponents[LegacyImage::MD_MARQUEE]->setImage(mRandomGame->getMarqueePath(),
|
||||||
false, true);
|
false, true);
|
||||||
mImageComponents[LegacyImage::MD_IMAGE]->setImage(mRandomGame->getImagePath());
|
|
||||||
if (mViewStyle == ViewController::VIDEO) {
|
if (mViewStyle == ViewController::VIDEO) {
|
||||||
mVideoComponents.front()->setImage(mRandomGame->getImagePath());
|
mVideoComponents.front()->setImage(mRandomGame->getImagePath());
|
||||||
// Always stop the video before setting a new video as it will otherwise
|
// 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()))
|
if (!mVideoComponents.front()->setVideo(mRandomGame->getVideoPath()))
|
||||||
mVideoComponents.front()->setDefaultVideo();
|
mVideoComponents.front()->setDefaultVideo();
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
mImageComponents[LegacyImage::MD_IMAGE]->setImage(mRandomGame->getImagePath());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
mImageComponents[LegacyImage::MD_THUMBNAIL]->setImage("");
|
mImageComponents[LegacyImage::MD_THUMBNAIL]->setImage("");
|
||||||
|
|
Loading…
Reference in a new issue