Fixed a small issue with video initializations during gamelist reloads.

This commit is contained in:
Leon Styhre 2021-03-01 18:50:12 +01:00
parent b6874acc01
commit 2d5662780f

View file

@ -790,6 +790,9 @@ void ViewController::reloadGameListView(IGameListView* view, bool reloadTheme)
mGameListViews.erase(it); mGameListViews.erase(it);
if (isCurrent)
mCurrentView = nullptr;
if (reloadTheme) if (reloadTheme)
system->loadTheme(); system->loadTheme();
system->getIndex()->setKidModeFilters(); system->getIndex()->setKidModeFilters();
@ -831,6 +834,7 @@ void ViewController::reloadAll()
cursorMap[it->first] = it->second->getCursor(); cursorMap[it->first] = it->second->getCursor();
mGameListViews.clear(); mGameListViews.clear();
mCurrentView = nullptr;
// Load themes, create GameListViews and reset filters. // Load themes, create GameListViews and reset filters.
for (auto it = cursorMap.cbegin(); it != cursorMap.cend(); it++) { for (auto it = cursorMap.cbegin(); it != cursorMap.cend(); it++) {