refactor: statusbar - be gone
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
@ -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())
|
||||
|
@ -145,7 +145,6 @@ public:
|
||||
|
||||
QString getLogFileRoot() override;
|
||||
|
||||
QString getStatusbarDescription() override;
|
||||
QString getMainVersion() override;
|
||||
|
||||
// FIXME: remove
|
||||
|
Reference in New Issue
Block a user