NOISSUE Add option to disable global play time status
This commit is contained in:
parent
98887911c1
commit
2e60413f7f
4 changed files with 13 additions and 1 deletions
|
@ -1610,6 +1610,7 @@ void MainWindow::globalSettingsClosed()
|
|||
proxymodel->invalidate();
|
||||
proxymodel->sort(0);
|
||||
updateToolsMenu();
|
||||
updateStatusCenter();
|
||||
update();
|
||||
}
|
||||
|
||||
|
@ -1927,6 +1928,8 @@ void MainWindow::checkInstancePathForProblems()
|
|||
|
||||
void MainWindow::updateStatusCenter()
|
||||
{
|
||||
m_statusCenter->setVisible(LAUNCHER->settings()->get("ShowGlobalGameTime").toBool());
|
||||
|
||||
int timePlayed = LAUNCHER->instances()->getTotalPlayTime();
|
||||
if (timePlayed > 0) {
|
||||
m_statusCenter->setText(tr("Total playtime: %1").arg(Time::prettifyDuration(timePlayed)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue