From 318a2a429c42efb0cb02b050ea2c7863e619df9a Mon Sep 17 00:00:00 2001 From: Edgar Onghena Date: Tue, 6 Dec 2022 13:00:15 +0100 Subject: [PATCH] Fix minutes unit Replaced "m" with "min" in `Time::prettifyDuration` Signed-off-by: Edgar Onghena --- launcher/MMCTime.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/launcher/MMCTime.cpp b/launcher/MMCTime.cpp index 4d7f424de..70bc4135f 100644 --- a/launcher/MMCTime.cpp +++ b/launcher/MMCTime.cpp @@ -28,11 +28,11 @@ QString Time::prettifyDuration(int64_t duration) { int days = (int) (duration / 24); if((hours == 0)&&(days == 0)) { - return QObject::tr("%1m %2s").arg(minutes).arg(seconds); + return QObject::tr("%1min %2s").arg(minutes).arg(seconds); } if (days == 0) { - return QObject::tr("%1h %2m").arg(hours).arg(minutes); + return QObject::tr("%1h %2min").arg(hours).arg(minutes); } - return QObject::tr("%1d %2h %3m").arg(days).arg(hours).arg(minutes); + return QObject::tr("%1d %2h %3min").arg(days).arg(hours).arg(minutes); }