From 06c31d06eb3b342ca783828a1a62b37f16a9f5b6 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 12 Mar 2021 20:03:46 +0100 Subject: [PATCH] The multi-scraper now sorts the gamelists only after actually scraping some games. --- es-app/src/guis/GuiScraperMulti.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/es-app/src/guis/GuiScraperMulti.cpp b/es-app/src/guis/GuiScraperMulti.cpp index 97feee796..cf9184874 100644 --- a/es-app/src/guis/GuiScraperMulti.cpp +++ b/es-app/src/guis/GuiScraperMulti.cpp @@ -103,10 +103,13 @@ GuiScraperMulti::GuiScraperMulti( GuiScraperMulti::~GuiScraperMulti() { - // View type probably changed (basic -> detailed). - for (auto it = SystemData::sSystemVector.cbegin(); - it !=SystemData::sSystemVector.cend(); it++) - (*it)->sortSystem(); + if (mTotalSuccessful > 0) { + // Sort all systems to possibly update their view style from Basic to Detailed or Video. + for (auto it = SystemData::sSystemVector.cbegin(); + it !=SystemData::sSystemVector.cend(); it++) { + (*it)->sortSystem(); + } + } ViewController::get()->onPauseVideo(); }