Merge pull request #1536 from Trial97/time3
Allow showing playtime in hours
This commit is contained in:
commit
e3b04d10cf
7 changed files with 25 additions and 9 deletions
|
@ -1736,7 +1736,9 @@ void MainWindow::updateStatusCenter()
|
|||
|
||||
int timePlayed = APPLICATION->instances()->getTotalPlayTime();
|
||||
if (timePlayed > 0) {
|
||||
m_statusCenter->setText(tr("Total playtime: %1").arg(Time::prettifyDuration(timePlayed)));
|
||||
m_statusCenter->setText(
|
||||
tr("Total playtime: %1")
|
||||
.arg(Time::prettifyDuration(timePlayed, APPLICATION->settings()->get("ShowGameTimeWithoutDays").toBool())));
|
||||
}
|
||||
}
|
||||
// "Instance actions" are actions that require an instance to be selected (i.e. "new instance" is not here)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue