diff options
author | Petr Mrázek <peterix@gmail.com> | 2021-07-22 21:16:32 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2021-07-22 21:18:03 +0200 |
commit | c5d0348181f97c306a4fd5b2ae51619a414b8677 (patch) | |
tree | bb254c3036a44a5699b6fbc3633dcf3ec940596c /application/MainWindow.cpp | |
parent | 1762d2fc7de99e38477a517c9b379447fd00b968 (diff) | |
download | PrismLauncher-c5d0348181f97c306a4fd5b2ae51619a414b8677.tar.gz PrismLauncher-c5d0348181f97c306a4fd5b2ae51619a414b8677.tar.bz2 PrismLauncher-c5d0348181f97c306a4fd5b2ae51619a414b8677.zip |
NOISSUE Fix minutes display for total playtime
Diffstat (limited to 'application/MainWindow.cpp')
-rw-r--r-- | application/MainWindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index 1720ca89..a700d0c5 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -1940,9 +1940,10 @@ void MainWindow::checkInstancePathForProblems() void MainWindow::updateStatusCenter() { int timeplayed = MMC->instances()->getTotalPlayTime(); - int minutes = timeplayed / 60; - int hours = minutes / 60; + int minutesTotal = timeplayed / 60; int seconds = timeplayed % 60; + int minutes = minutesTotal % 60; + int hours = minutesTotal / 60; if(hours != 0) m_statusCenter->setText(tr("Total playtime: %1h %2m %3s").arg(hours).arg(minutes).arg(seconds)); else if(minutes != 0) |