mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 22:25:38 +00:00
Fixed a small issue with video initializations during gamelist reloads.
This commit is contained in:
parent
b6874acc01
commit
2d5662780f
|
@ -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++) {
|
||||||
|
|
Loading…
Reference in a new issue