The multi-scraper now sorts the gamelists only after actually scraping some games.

This commit is contained in:
Leon Styhre 2021-03-12 20:03:46 +01:00
parent 90bd12ef1c
commit 06c31d06eb

View file

@ -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();
}