SysMon-Bar: Do not display % when reaching 100% usage. Fix #635

This commit is contained in:
ItsLemmy
2025-11-01 13:56:06 -04:00
parent 99bae95bd4
commit f35521835a
+8 -1
View File
@@ -114,7 +114,14 @@ Rectangle {
}
NText {
text: `${Math.min(99, Math.round(SystemStatService.cpuUsage))}%`
text: {
let usage = Math.round(SystemStatService.cpuUsage)
if (usage < 100) {
return `${usage}%`
} else {
return usage
}
}
family: Settings.data.ui.fontFixed
pointSize: textSize
applyUiScale: false