Changed the multi-scraper to only show the total game count per system

This commit is contained in:
Leon Styhre 2023-07-01 21:54:27 +02:00
parent 30ca0497aa
commit ec2bc68d91

View file

@ -221,11 +221,11 @@ void GuiScraperMulti::doNextSearch()
std::stringstream ss; std::stringstream ss;
if (mQueueCountPerSystem.size() > 1) { if (mQueueCountPerSystem.size() > 1) {
const int gameCount {++mQueueCountPerSystem[mSearchQueue.front().system].first}; // const int gameCount {++mQueueCountPerSystem[mSearchQueue.front().system].first};
const int totalGameCount {mQueueCountPerSystem[mSearchQueue.front().system].second}; const int totalGameCount {mQueueCountPerSystem[mSearchQueue.front().system].second};
mSystem->setText(Utils::String::toUpper(mSearchQueue.front().system->getFullName()) + mSystem->setText(Utils::String::toUpper(mSearchQueue.front().system->getFullName()) + " [" +
" [GAME " + std::to_string(gameCount) + " OF " + std::to_string(totalGameCount) + " GAME" +
std::to_string(totalGameCount) + "]"); (totalGameCount == 1 ? "]" : "S]"));
} }
else { else {
mSystem->setText(Utils::String::toUpper(mSearchQueue.front().system->getFullName())); mSystem->setText(Utils::String::toUpper(mSearchQueue.front().system->getFullName()));