forked from Github/PrismLauncher
fix zero launch time
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
(cherry picked from commit 1b0e8260ac)
This commit is contained in:
parent
f7cad1110e
commit
905d9d2826
1 changed files with 1 additions and 1 deletions
|
|
@ -992,7 +992,7 @@ QString MinecraftInstance::getStatusbarDescription()
|
|||
QString description;
|
||||
description.append(tr("Minecraft %1").arg(mcVersion));
|
||||
if (m_settings->get("ShowGameTime").toBool()) {
|
||||
if (lastTimePlayed() > 0) {
|
||||
if (lastTimePlayed() > 0 && lastLaunch() > 0) {
|
||||
QDateTime lastLaunchTime = QDateTime::fromMSecsSinceEpoch(lastLaunch());
|
||||
description.append(
|
||||
tr(", last played on %1 for %2")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue