Fixed an issue where videos would keep playing when switching gamelists.

This commit is contained in:
Leon Styhre 2020-11-17 22:09:22 +01:00
parent 1a35d29f19
commit df18a822b7

View file

@ -290,11 +290,14 @@ void ViewController::goToGameList(SystemData* system)
cancelViewTransitions();
// Disable rendering of the system view.
if (getSystemListView()->getRenderView())
if (getSystemListView()->getRenderView()) {
getSystemListView()->setRenderView(false);
}
// If switching between gamelists, disable rendering of the current view.
else if (mCurrentView)
else if (mCurrentView) {
mCurrentView->onHide();
mCurrentView->setRenderView(false);
}
if (mState.viewing == SYSTEM_SELECT) {
// Move system list.