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(); cancelViewTransitions();
// Disable rendering of the system view. // Disable rendering of the system view.
if (getSystemListView()->getRenderView()) if (getSystemListView()->getRenderView()) {
getSystemListView()->setRenderView(false); getSystemListView()->setRenderView(false);
}
// If switching between gamelists, disable rendering of the current view. // If switching between gamelists, disable rendering of the current view.
else if (mCurrentView) else if (mCurrentView) {
mCurrentView->onHide();
mCurrentView->setRenderView(false); mCurrentView->setRenderView(false);
}
if (mState.viewing == SYSTEM_SELECT) { if (mState.viewing == SYSTEM_SELECT) {
// Move system list. // Move system list.