system-stats: many optimizations, removed GUI settings to control polling as it's too risky, disable all when on the lockscreen.

This commit is contained in:
Lemmy
2026-02-13 14:34:35 -05:00
parent 8c776b5504
commit 1a75b0b3f2
11 changed files with 148 additions and 292 deletions
+3
View File
@@ -10,6 +10,9 @@ import qs.Widgets
NBox {
id: root
Component.onCompleted: SystemStatService.registerComponent("card-sysmonitor")
Component.onDestruction: SystemStatService.unregisterComponent("card-sysmonitor")
readonly property string diskPath: Settings.data.controlCenter.diskPath || "/"
readonly property real contentScale: 0.95 * Style.uiScaleRatio