Fixed an issue where videos would play during gamelist scrolling.

This commit is contained in:
Leon Styhre 2020-10-10 14:17:05 +02:00
parent 96da134f7d
commit 2258825a73

View file

@ -450,6 +450,11 @@ std::vector<GuiComponent*> VideoGameListView::getMDValues()
void VideoGameListView::update(int deltaTime)
{
if (!mVideoPlaying)
mVideo->onHide();
else
mVideo->onShow();
BasicGameListView::update(deltaTime);
mVideo->update(deltaTime);
}