Merge pull request #2423 from Trial97/fix_time3
fix incorrect launch time
This commit is contained in:
commit
7ab8f8ef54
@ -1000,7 +1000,7 @@ QString MinecraftInstance::getStatusbarDescription()
|
|||||||
QString description;
|
QString description;
|
||||||
description.append(tr("Minecraft %1").arg(mcVersion));
|
description.append(tr("Minecraft %1").arg(mcVersion));
|
||||||
if (m_settings->get("ShowGameTime").toBool()) {
|
if (m_settings->get("ShowGameTime").toBool()) {
|
||||||
if (lastTimePlayed() > 0) {
|
if (lastTimePlayed() > 0 && lastLaunch() > 0) {
|
||||||
QDateTime lastLaunchTime = QDateTime::fromMSecsSinceEpoch(lastLaunch());
|
QDateTime lastLaunchTime = QDateTime::fromMSecsSinceEpoch(lastLaunch());
|
||||||
description.append(
|
description.append(
|
||||||
tr(", last played on %1 for %2")
|
tr(", last played on %1 for %2")
|
||||||
|
Loading…
Reference in New Issue
Block a user