fixes the invisible 0

This commit is contained in:
DanielSvoboda 2024-10-09 02:33:50 -03:00
parent 1c1532e9e0
commit 087da35f63

View File

@ -122,8 +122,12 @@ void GameListFrame::PopulateGameList() {
formattedPlayTime = formattedPlayTime.trimmed();
m_game_info->m_games[i].play_time = playTime.toStdString();
if (formattedPlayTime.isEmpty()) {
SetTableItem(i, 7, "0");
} else {
SetTableItem(i, 7, formattedPlayTime);
}
}
QString path;
Common::FS::PathToQString(path, m_game_info->m_games[i].path);