refactor: statusbar - be gone

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu
2022-10-01 23:21:09 +02:00
parent 822c98469f
commit 5189d29810
8 changed files with 6 additions and 73 deletions

View File

@ -880,26 +880,6 @@ QString MinecraftInstance::getLogFileRoot()
return gameRoot();
}
QString MinecraftInstance::getStatusbarDescription()
{
QString description = getMainVersion();
if(m_settings->get("ShowGameTime").toBool())
{
if (lastTimePlayed() > 0) {
description.append(tr(", last played for %1").arg(Time::prettifyDuration(lastTimePlayed())));
}
if (totalTimePlayed() > 0) {
description.append(tr(", total played for %1").arg(Time::prettifyDuration(totalTimePlayed())));
}
}
if(hasCrashed())
{
description.append(tr(", has crashed."));
}
return description;
}
QString MinecraftInstance::getMainVersion() {
QString mcVersion = m_components->getComponentVersion("net.minecraft");
if (mcVersion.isEmpty())

View File

@ -145,7 +145,6 @@ public:
QString getLogFileRoot() override;
QString getStatusbarDescription() override;
QString getMainVersion() override;
// FIXME: remove