fix when badges are shown (reverse)

This commit is contained in:
Sophia Hadash 2021-09-19 23:21:38 +02:00
parent b3ea037221
commit 4959e72b35
2 changed files with 4 additions and 5 deletions

View file

@ -450,10 +450,10 @@ void VideoGameListView::updateInfoPanel()
// Generate badges slots value based on the game metadata.
std::stringstream ss;
ss << (file->metadata.get("favorite").compare("true") ? "favorite " : "");
ss << (file->metadata.get("completed").compare("true") ? "completed " : "");
ss << (file->metadata.get("kidgame").compare("true") ? "kidgame " : "");
ss << (file->metadata.get("broken").compare("true") ? "broken " : "");
ss << (file->metadata.get("favorite").compare("true") ? "" : "favorite ");
ss << (file->metadata.get("completed").compare("true") ? "" : "completed ");
ss << (file->metadata.get("kidgame").compare("true") ? "" : "kidgame ");
ss << (file->metadata.get("broken").compare("true") ? "" : "broken ");
std::string slots = ss.str();
if (!slots.empty())
slots.pop_back();

View file

@ -28,7 +28,6 @@
#define DEFAULT_MARGIN_X 10.0f
#define DEFAULT_MARGIN_Y 10.0f
#define DEFAULT_ITEM_SIZE_X 64.0f
#define DEFAULT_ITEM_SIZE_Y 64.0f
class TextureResource;