Fixed an issue where static images for video elements would sometimes not fade out during gamelist fast-scrolling.

This commit is contained in:
Leon Styhre 2022-09-15 17:22:26 +02:00
parent 0aa1d3bdc7
commit 78cdc49200

View file

@ -71,8 +71,7 @@ bool VideoComponent::setVideo(std::string path)
return true;
}
if (!mVideoPath.empty() || !mConfig.defaultVideoPath.empty() ||
!mConfig.staticVideoPath.empty())
if (!mVideoPath.empty() || !mConfig.staticVideoPath.empty())
mHasVideo = true;
else
mHasVideo = false;