From 2e60413f7fa4b5ce376de7abdb3b5e8a4e0a5d28 Mon Sep 17 00:00:00 2001 From: Jamie Mansfield Date: Wed, 13 Oct 2021 22:14:02 +0100 Subject: NOISSUE Add option to disable global play time status --- launcher/MainWindow.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'launcher/MainWindow.cpp') diff --git a/launcher/MainWindow.cpp b/launcher/MainWindow.cpp index 33d9c7f4..0c414285 100644 --- a/launcher/MainWindow.cpp +++ b/launcher/MainWindow.cpp @@ -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))); -- cgit