From 2d5662780f3d62fe54acd601e0c5751cff14b071 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 1 Mar 2021 18:50:12 +0100 Subject: [PATCH] Fixed a small issue with video initializations during gamelist reloads. --- es-app/src/views/ViewController.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/es-app/src/views/ViewController.cpp b/es-app/src/views/ViewController.cpp index feac7487f..fc1a67d93 100644 --- a/es-app/src/views/ViewController.cpp +++ b/es-app/src/views/ViewController.cpp @@ -790,6 +790,9 @@ void ViewController::reloadGameListView(IGameListView* view, bool reloadTheme) mGameListViews.erase(it); + if (isCurrent) + mCurrentView = nullptr; + if (reloadTheme) system->loadTheme(); system->getIndex()->setKidModeFilters(); @@ -831,6 +834,7 @@ void ViewController::reloadAll() cursorMap[it->first] = it->second->getCursor(); mGameListViews.clear(); + mCurrentView = nullptr; // Load themes, create GameListViews and reset filters. for (auto it = cursorMap.cbegin(); it != cursorMap.cend(); it++) {