summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-27 14:56:06 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-27 14:56:06 +1000
commit3beaac99f3fdf402d2fa5541e96d9c9d205c1ca1 (patch)
tree65e9a12a1958e80baef8c4c35c2a2be3e558e9c5
parenticons: use heuristicLookup (diff)
downloadcaelestia-shell-3beaac99f3fdf402d2fa5541e96d9c9d205c1ca1.tar.gz
caelestia-shell-3beaac99f3fdf402d2fa5541e96d9c9d205c1ca1.tar.bz2
caelestia-shell-3beaac99f3fdf402d2fa5541e96d9c9d205c1ca1.zip
dashboard: fix uptime
-rw-r--r--modules/dashboard/dash/User.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/dashboard/dash/User.qml b/modules/dashboard/dash/User.qml
index d40dd6d..7bc225b 100644
--- a/modules/dashboard/dash/User.qml
+++ b/modules/dashboard/dash/User.qml
@@ -150,14 +150,14 @@ Row {
const hours = Math.floor((up % 86400) / 3600);
const minutes = Math.floor((up % 3600) / 60);
- let str = qsTr("up ");
+ let str = "";
if (days > 0)
str += `${days} day${days === 1 ? "" : "s"}`;
if (hours > 0)
str += `${str ? ", " : ""}${hours} hour${hours === 1 ? "" : "s"}`;
if (minutes > 0 || !str)
str += `${str ? ", " : ""}${minutes} minute${minutes === 1 ? "" : "s"}`;
- uptime.text = str;
+ uptime.text = qsTr("up %1").arg(str);
}
}
}