mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-15 16:37:15 +00:00
NOISSUE Add option to disable global play time status
This commit is contained in:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user