Displays "Never Played" if the game has never been played (#1697)

* Displays "Never Played" if the game has never been played

* Update nb.ts + pt_BR.ts
This commit is contained in:
¥IGA 2024-12-10 21:16:16 +01:00 committed by GitHub
parent b8a443c728
commit e36c4d5f75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 137 additions and 2 deletions

View file

@ -31,7 +31,7 @@ GameListFrame::GameListFrame(std::shared_ptr<GameInfoClass> game_info_get, QWidg
this->setColumnWidth(4, 90); // Firmware
this->setColumnWidth(5, 90); // Size
this->setColumnWidth(6, 90); // Version
this->setColumnWidth(7, 100); // Play Time
this->setColumnWidth(7, 120); // Play Time
QStringList headers;
headers << tr("Icon") << tr("Name") << tr("Serial") << tr("Region") << tr("Firmware")
<< tr("Size") << tr("Version") << tr("Play Time") << tr("Path");
@ -105,7 +105,7 @@ void GameListFrame::PopulateGameList() {
QString playTime = GetPlayTime(m_game_info->m_games[i].serial);
if (playTime.isEmpty()) {
m_game_info->m_games[i].play_time = "0:00:00";
SetTableItem(i, 7, "0");
SetTableItem(i, 7, tr("Never Played"));
} else {
QStringList timeParts = playTime.split(':');
int hours = timeParts[0].toInt();