Update game_list_frame.cpp

This commit is contained in:
DanielSvoboda 2024-12-14 13:40:47 -03:00 committed by GitHub
parent 0b9d831ffc
commit 32f2afc4c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,7 +123,7 @@ void GameListFrame::PopulateGameList() {
formattedPlayTime = formattedPlayTime.trimmed();
m_game_info->m_games[i].play_time = playTime.toStdString();
if (formattedPlayTime.isEmpty()) {
SetTableItem(i, 7, "0");
SetTableItem(i, 7, QString("%1s").arg(seconds));
} else {
SetTableItem(i, 7, formattedPlayTime);
}