Fixed an issue where an extra blankspace was appended to text elements when setting the systemdata property to gamecountGames or gamecountGamesNoText

This commit is contained in:
Leon Styhre 2024-01-28 16:46:49 +01:00
parent 4f8bbc0eca
commit 8fdbf429ef

View file

@ -839,7 +839,7 @@ void SystemView::updateGameCount(SystemData* system)
else {
ss << gameCount.first << " Game" << (gameCount.first == 1 ? " " : "s ") << "("
<< gameCount.second << " Favorite" << (gameCount.second == 1 ? ")" : "s)");
ssGames << gameCount.first << " Game" << (gameCount.first == 1 ? " " : "s ");
ssGames << gameCount.first << " Game" << (gameCount.first == 1 ? "" : "s");
ssFavorites << gameCount.second << " Favorite" << (gameCount.second == 1 ? "" : "s");
games = true;
}